HTML COURSE โ€ข LESSON 6

HTML Headings

HTML headings are used to create titles and organize the content of a web page.

Heading Tags

HTML provides six heading levels:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Heading Code
<h1>Main Heading</h1>

<h2>Section Heading</h2>

<h3>Subsection Heading</h3>

<h4>Heading 4</h4>

<h5>Heading 5</h5>

<h6>Heading 6</h6>

Heading Importance

Headings are important for organizing content and helping search engines understand the structure of a page.

๐Ÿ’ก Good Structure

Use one main <h1> heading and use <h2>, <h3> and other headings in a logical order.

Do Not Use Headings Only for Size

Heading tags should describe the structure of your content. Use CSS when you only want to change the text size.

โญ EDUHUB Tip

A well-organized heading structure makes your website easier to read and improves accessibility.

โšก EDUHUB Live HTML Editor

LIVE PREVIEW