HTML Headings & Paragraphs

HTML Headings

HTML headings are used to define titles and subtitles on a page. They range from <h1> (largest) to <h6> (smallest).

<h1>Main Title</h1>
<h2>Sub Title</h2>
    

HTML Paragraphs

Paragraphs are defined using the <p> tag. Browsers automatically add space before and after paragraphs.

<p>This is a paragraph.</p>