The HTML element encompasses all content between the start tag and the end tag.
<tagname>Content goes here…</tagname> |
Examples of some HTML elements:
<h1>My First Heading</h1> |
<p>My first paragraph.</p> |
Start tag |
Element content |
End tag |
<h1> |
First Heading |
</h1> |
<p> |
first paragraph. |
</p> |
<br> |
none |
none |
Note: Certain HTML elements, such as the <br> element, lack content and are termed empty elements. They do not require an end tag. |