The most basic content elements: headings (<h1>–<h6>) create a title hierarchy, and paragraphs (<p>) hold blocks of text.
Headings
<h1>Page Title</h1> <!-- one per page, the main title --><h2>Section Heading</h2><h3>Subsection</h3><!-- … down to <h6> -->
Paragraphs
<p>A paragraph of text. The browser ignores extraspaces and line breaks in the source.</p><p>A second paragraph.</p><br /> <!-- a manual line break (use sparingly) -->
Key takeaways
- 01Headings <h1>–<h6> create a title hierarchy; use one <h1> per page.
- 02Choose heading level by structure, not text size (style with CSS).
- 03Don't skip heading levels — screen readers and SEO rely on the order.
- 04<p> holds paragraphs; the browser collapses extra whitespace in the source.
