HTML Tags Tutor

Header Tag

The header tag is used to add page or paragraph headings to a web page.

The header tag comes in 6 default sizes:
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>

By default H1 is the largest and H6 is the smallest.

Heading text is placed between the 2 tags.

Lesson steps

Click the <> button to enter your code

Type the code shown here for an H1 header tag in the editor window:

<h1>Hello World</h1>

Click Preview button.

Lesson Notes

The header tag carries more weight than normal text where search engines are concerned. Use keywords in your header tags to introduce pages and paragraphs.

In the next lesson, you'll learn how to control the size and font settings for your header tag using the Style tag.