Skip to main content
Albero Academy

Headings & Paragraphs

Structure text with headings and paragraphs.

Foundations7 min

The most basic content elements: headings (<h1>–<h6>) create a title hierarchy, and paragraphs (<p>) hold blocks of text.

Headings

a heading hierarchy
<h1>Page Title</h1> <!-- one per page, the main title -->
<h2>Section Heading</h2>
<h3>Subsection</h3>
<!-- … down to <h6> -->

Paragraphs

paragraphs and breaks
<p>A paragraph of text. The browser ignores extra
spaces and line breaks in the source.</p>
<p>A second paragraph.</p>
<br /> <!-- a manual line break (use sparingly) -->

Key takeaways

  1. 01Headings <h1>–<h6> create a title hierarchy; use one <h1> per page.
  2. 02Choose heading level by structure, not text size (style with CSS).
  3. 03Don't skip heading levels — screen readers and SEO rely on the order.
  4. 04<p> holds paragraphs; the browser collapses extra whitespace in the source.

Finished this chapter?

Mark it complete to track your progress through HTML.