Headings

There are 6 level of headings. The largest heading is <h1> and the smallest is <h6>.

A webpage can look more presentable with different styles of headings. You can start off with the <h1> as the main heading followed by either <h2> or <h3> as subheadings.




<body>
<h1>First heading</h1>
<h2>Second heading</h2>
<h3>Third heading</h3>
<h4>Fouth heading</h4>
<h5>Fifth heading</h5>
<h6>Sixth heading</h6>
</body>

Displays

First heading

Second heading

Third heading

Fouth heading

Fifth heading
Sixth heading

Example


<body>
<h1>HTML</h1>
<h2>Lesson 1</h2>
<p>In lesson 1 you will learn how to format your documents.</p>
<h2>Lesson 2</h2>
<p>In lesson 2 you will learn how to insert images.</p>
</body>




Displays

HTML

Lesson 1

In lesson 1 you will learn how to format your documents.

Lesson 2

In lesson 2 you will learn how to insert images.




Now do the Exercise!