📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials HTML Fundamentals Headings and Paragraphs

Headings and Paragraphs

4 min read Quiz at the end
Use h1 through h6 for headings — one h1 per page. Use p for paragraphs. Maintain heading hierarchy and do not skip levels. The heading structure is important for both SEO and screen reader navigation.

Headings and Paragraphs

<h1>Biggest Heading</h1>
<h2>Subheading</h2>
<h3>Smaller</h3>
<h4>Even smaller</h4>
<h5>Small</h5>
<h6>Smallest</h6>

<p>A paragraph of text.</p>

<!-- Line break (avoid overusing) -->
<br>
<!-- Horizontal rule -->
<hr>
Topic Quiz · 5 questions

Test your understanding before moving on

1. How many heading levels are there?
💡 HTML has 6 heading levels: <h1> through <h6>.
2. There should be how many h1 tags per page?
💡 Best practice is one <h1> per page — it is the main topic heading.
3. What does <hr> create?
💡 <hr> creates a horizontal thematic break (divider line).
4. What does <br> do?
💡 <br> inserts a single line break within text.
5. What is the purpose of headings?
💡 Headings create a content hierarchy, improving readability, SEO, and screen reader navigation.