Hypertext markup language. Commonly known as HTML. Html, is used to tag text, hyperlink, graphics in web pages.
What are tags?
If you are familiar with text editors such as ms word, page or word-pad, you must have stylised texts. Page starts with heading. To set text as heading, you must have used heading style. For sub headings, you must have used heading 2 style or sub heading style. So what is happening here, at the backend, something is setting those texts as heading or sub-heading. If you want to set certain texts as bold, then you must have used bold style. To underline a text you must have used underline style. To set a text as italic, you must have used italic style. To set colour of text, you must have used colour style. At the backend, something is setting required style to the desired text.
Same logic is applied in webpages too. To stylise text we use tags in webpages. To insert hyperlinks in webpage we use certain tag. To insert graphic such as image or video we use another tag. Using tags we can set desired style in our webpages. With out tags we can’t set style for texts in webpages.
So for a desired result, we need to use certain tag. To set a text as heading, we need to use heading tag. To set a text as bold, we need to use bold tag. To set a text as italic, we need to use italic tag. To underline a tag, we need to use underline tag. To insert image in a webpage or to show an image in webpage, we need to use image tag. To insert video or to show video in our webpage we need to use video tag.
How these tags are executed?
It is not that we placed tag and it provided the desired respective result by itself. Some thing must be understanding these tags.
Who is understanding these tags in a webpage?
Browser understands these tags and provides desired respective result in a webpage.
Examples of browsers:
- Internet explorer
- Mozilla firefox
- Google Chrome
There are other browsers too available which works more or less same way. Browsers renders a tag and provides desired respective result in a webpage. These browsers are powerful engines in itself.
Why do we use HTML in webpages?
- HTML allows us to stylise texts of a webpage
- HTML also allows us to insert images, videos (Graphics) in a webpage
- HTML also defines structure of a webpage.
- HTML also provides insertion of links to relate one webpage to another (commonly known as hyperlinks)
Without HTML, a webpage will no have any structure, texts can not be stylised, we can not insert graphics into webpage and we can not set links to various webpages.