HTML Elements
An HTML element is defined by a start tag, some content, and an end tag:
<tagname>Content goes here...</tagname>
The HTML element is everything from the start tag to the end tag:
<h1>My First Heading</h1>
From the above code
The <h1> is the start tag
My First Heading is the content, this can be anything you need
</h1> is a end tag
The HTML elements can be classified in three broad categories
Container: They comprise of start tag and end tag
e.g. <p> this is a para</p>
Nested : They are like container tags but one tag is placed inside the other
e.g. <p><i>This is a para containing italics</i></p>
here we can say that the <i>..</i> tag is nested within <p> tag
Empty : These tags do not have a close tag
e.g. <br> or <br />