Creating headings

There are six headings in HTML. Each heading can be created with an HTML header tag, one header tag for each level of heading. Header tags are range from <h1> to <h6>, where <h1> is the largest and most prominent and <h6> is the smallest. To use a header tag, use the following syntax:

<hn>Some text</hn>
where n is a number between 1 and 6.

Figure 1 shows how to use all of the six headings as an HTML code on the left and the output from a browser is shown on the right.

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Figure 1 Six Headers Styles Displayed in Internet Explorer
Figure 1 Six Headers Styles Displayed in Internet Explorer