HTML Tags
A web browser reads an HTML document top to bottom, left to right.
The tags are impotent in HTML as it signals the browser to display it accordingly.
Tags have 3 major parts:
- opening tag
- content(s)
- closing tag
About HTML Tags
There are lots of tags in HTML. There are tags for headers, tables, forms, images, paragraphs etc. The tags should be lower-case letters.
Below given are few example tags.
<body>Body Tag (acts as a content shell)
<p>Paragraph Tag</p>
<h2>Heading Tag</h2>
<b>Bold Tag</b>
<i>Italic Tag</i>
</body>
Tags Without Closing Tags
There are few tags that do not require the closing tag.
Some of them include the line break tag, image tag, input tag etc.
Example:
<input type="text" size="10" /> -- Input Tag
<img src="image.jpg" /> -- Image Tag
<br /> -- Line Break Tag
As these tags do not have any contents, they do not require the closing tag.
Related posts:
Your IP address1 is: 172.18.0.2
Tutorials
Latest Updates
Follow us
- Tech-Tutorials twitter.com/techcuriosity