Headings

In the previous lesson, we learned how to create the HTML structure that we will need in every HTML document. In this lesson, we will look at various HTML tags that will help us create the content of web pages. Since they form the content of web pages, we will write them inside the body element.

In this exercise, we will start creating headings. Headings in HTML are divided into six levels:

<h1>Largest Heading</h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6>Smallest Heading</h6>

h1 is the largest and main heading of a web page. The size gradually decreases down to h6, which is the smallest heading.

Instructions

In the body element, create an h1 element with the text Cat.

Below the h1 element from the previous instruction, create an h2 element with the text Description.

Below the h2 element from the previous instruction, create another h2 element with the text Physiology.

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

1/8

Headings | Start Coder