Last updated

Headings & Paragraphs

Definition: Headings (<h1> to <h6>) label sections of a page, and paragraphs (<p>) hold blocks of text.

Six heading levels

<h1>Biggest (page title)</h1>
<h2>Section heading</h2>
<h3>Smaller heading</h3>

<h1> is the largest and most important; <h6> the smallest. Use them in order — they also help search engines understand your page.

Text formatting

<p>Make words <b>bold</b> or <i>italic</i>.</p>
<p>Line one<br>Line two after a break</p>
  • <b> — bold, <i> — italic, <strong> — important
  • <br> — a line break (one of the few tags with no closing tag)

💡 Tip: use only one <h1> per page — it is the main title.

Try it Yourself
Output

          
Ad · responsive