Skip to content

HTML Headings

Hridaya edited this page Feb 4, 2021 · 1 revision

HTML Headings

HTML headings are titles or subtitles that you want to display on a webpage.

There 6 types of headings in HTML.

<h1></h1> <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6>

This is a H1 Heading

This is a H2 heading

This is a H3 heading

This is a H4 heading

This is a H5 heading
This is a H6 heading

<h1> defines the biggest heading. <h6> defines the smallest heading.

NOTE: Browsers automatically add some white space (a margin) before and after a heading

NOTE: Use HTML headings for headings only. Don't use headings to make text BIG or bold.