HTML Heading Tags

HTML Heading Tag

Heading tag is used to give headings of particular sizes in a document. There are six different HTML heading tags, which gives different heading sizes and are defined by <h1> to <h6> tags.

<h1> gives the largest heading and <h6> gives the smallest one. So <h1> can be used for most important headings and <h6> can be used for least important one.

Example
<h1>HTML (Hyper Text Markup Language)</h1>
<h2>HTML (Hyper Text Markup Language)</h2>
<h3>HTML (Hyper Text Markup Language)</h3>
<h4>HTML (Hyper Text Markup Language)</h4>
<h5>HTML (Hyper Text Markup Language)</h5>
<h6>HTML (Hyper Text Markup Language)</h6>

Output

html-headings

Heading Size

You can change the size of Heading by using font-size property.

Example
<h1>HTML (Hyper Text Markup Language)</h1>
<h2>HTML (Hyper Text Markup Language)</h2>
<h3 style="font-size:50px">HTML (Hyper Text Markup Language)</h3>

Output

html-heading-size