SyntaxStudy
Sign Up
HTML HTML Headings & Paragraphs
HTML Beginner 1 min read

HTML Headings & Paragraphs

HTML Headings & Paragraphs

Headings

HTML has six levels of headings: <h1> through <h6>. h1 is the most important (largest) and h6 is the least important (smallest).

Use only one h1 per page — it is important for SEO and accessibility.

Paragraphs

The <p> tag defines a paragraph. Browsers automatically add space before and after each paragraph.

Line Break & Horizontal Rule

  • <br> — Inserts a line break (no closing tag needed)
  • <hr> — Inserts a horizontal divider line
Example
<h1>Main Page Title (h1)</h1>
<h2>Section Heading (h2)</h2>
<h3>Subsection (h3)</h3>
<p>This is a paragraph. It can contain multiple sentences.</p>
<p>This is another paragraph.</p>
<hr>
<p>First line.<br>Second line after a break.</p>