HTML Headings
Learn in CodeLines Tutorials - In HTML, headings and subheadings serve as the structure and organization of content on your web page. They are defined using H1 to H6 tags, with H1 representing the most important heading and H6 the least important.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
<h1>Heading1</h1>
<h2>Heading2</h2>
<h3>Heading3</h3>
<h4>Heading1</h3>
<h5>Heading2</h4>
<h6>Heading3</h6>
Headings Are Important
Users often skim a page by its headings. It is important to use headings to show the document structure. <h1> headings should be used for main headings, followed by <h2> headings, then the less important <h3> , and so on. Note: Use HTML headings for headings only.
Large Headings
Each HTML heading has a default size. However, you can specify the size for any heading with the style attribute, using the CSS font size property: