HTML Elements

An HTML element is defined by a start tag, some content, and an end tag. <!DOCTYPE html> .

The HTML document itself begins with <html> and ends with </html>

HTML Elements

The HTML element is everything from the start tag to the end tag:

<tagname> Content goes here...</tagname >

Examples of some HTML elements:

<h1>Heading 1</h1 >
<p>Paragraph</p >

Nested HTML Elements

HTML elements can be nested (this means that elements can contain other elements).
All HTML documents consist of nested HTML elements.
The following example contains four HTML elements (<html>, <body> , <p> , <h1>):