HTML Elements
An element is a start tag, some content and an end tag: <p>Hello</p>. Some elements have no content and no end tag, such as br, hr and img. These are called void elements.
Elements can be nested inside each other. Always close the inner element before the outer one.
Example
<p>This is <strong>important</strong> and this has a<br>line break.</p>
<hr>
<p>Nested: <em>emphasis with <strong>strong inside</strong></em></p>Exercise
Close the paragraph element.
<p>Hello</>
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.