HTML documents are composed of elements, which are written with a start tag (or opening tag), an end tag (or closing tag), and content in between:
An HTML element is everything, from the start tag to the end tag. Below are examples of a few HTML elements:
Start tag | Element content | End tag |
<title> | My First Title | </title> |
<h1> | My First Heading | </h1> |
<p> | My first paragraph. | </p> |
<br> |
Some HTML elements do not have an end tag, nor any content.