Heading Tag

Table of Contents

Heading Tag

Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading while <h6> defines the smallest.

Code :

<html>

<body>

<h1>freeallnotes</h1>

<h2>freeallnotes</h2>

<h3>freeallnotes</h3>

<h4>freeallnotes</h4>

<h5>freeallnotes</h5>

<h6> freeallnotes</h6>

</body>

</html>

Output :

free notes for all

free notes for all

free notes for all

free notes for all

free notes for all
free notes for all
 

HTML automatically adds an extra blank line before and after a heading. A useful heading attribute is align.

<h5 align=”left”>I can align headings </h5>

<h5 align=”center”>This is a centered heading </h5>

<h5 align=”right”>This is a heading aligned to the right </h5>

You May Like to Browers More