Common HTML Elements
Learn about the most commonly used HTML elements
Common HTML Elements
HTML provides many elements for different types of content. Here are the most essential ones.
Text Elements
Headings
<h1>Main Heading</h1>
<h2>Section Heading</h2>
<h3>Subsection Heading</h3>
<h4>Minor Heading</h4>
<h5>Small Heading</h5>
<h6>Smallest Heading</h6>
Paragraphs and Text
<p>This is a paragraph of text.</p>
<strong>Bold text</strong>
<em>Italic text</em>
<span>Inline text container</span>
Lists
Unordered List
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>
Ordered List
<ol>
<li>Step one</li>
<li>Step two</li>
<li>Step three</li>
</ol>
Links and Images
Links
<a href="https://example.com">Visit Example</a>
<a href="/about">About Page</a>
<a href="#section">Jump to Section</a>
Images
<img src="image.jpg" alt="Description of image">
Container Elements
Div and Span
<div>Block-level container</div>
<span>Inline container</span>
These elements form the building blocks of web content!