Skip to main content Skip to course content Envision Tech Academy Logo

Headings

Headings are used to define the structure of a web page. They are created using the <h1> to <h6> tags. The <h1> tag is the largest heading, and the <h6> tag is the smallest heading. Headings emphasize importance of your content and help users to understand the structure of your page.

Here's an example of headings:

<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<h3>This is a Heading 3</h3>
<h4>This is a Heading 4</h4>
<h5>This is a Heading 5</h5>
<h6>This is a Heading 6</h6>

Exercise

Fill in the blanks to complete the code snippet
<h1>My heading<
>
My paragraph<
>