Header Tags


Header tags are used to format the text on your website. These tags are much easier to use than defining a font size. Using header tags gives your website a uniform look. It also allows your visitors to scan through your content better. Header tags give topics and sub topics the definition it needs to stand out from the rest of the text.

It’s quite simple to use header tags. All you really have to do is to enclose the title of the paragraph or sub-paragraph like this:

<h1> Title 1 </h1>
<h2> Title 2 </h2>
<h3> Title 3 </h3>
<h4> Title 4 </h4>
<h5> Title 5 </h5>
<h6> Title 6 </h6>

As you can see, header tags run from h1 to h6, where h1 is the largest and h6 the smallest font.

Header tags work in html and are supported by almost all browsers. This code is more convenient to use because the title are printed in bold as well. This keeps you from using the font size tag and the bold tag at the same time when formatting your text.

However don’t confuse the header tag from the head tag of html coding. These two tags are different and create a different effect on your layout.