Menu
HTML Fundamentals
Elements & Tags
How opening tags, closing tags, and content come together.
1Anatomy of an Element
An HTML element is made of an opening tag, content, and a closing tag. Some elements are "void" (self-closing) like <img> and <br>.
Example Code
<!-- Normal element -->
<p>Hello world</p>
<!-- Void elements (no closing tag) -->
<br />
<img src="cat.jpg" alt="A cat" />Finished reading?
Mark this topic as complete to track progress.