Problem Statement
How many heading levels are available in HTML?
Explanation
HTML provides six levels of headings, from h1 to h6. The h1 tag represents the most important heading, typically used for the main title of a page. The h6 tag represents the least important heading, used for minor sub-sections. This hierarchy helps structure your content logically. Search engines use heading tags to understand the content structure and importance of different sections. It is important to use headings in order and not skip levels. For example, after h2, you should use h3, not jump directly to h5. This maintains proper document structure and helps with accessibility for screen readers.
Code Solution
SolutionRead Only
<h1>Main Heading - Most Important</h1> <h2>Sub Heading</h2> <h3>Sub Sub Heading</h3> <h4>Minor Heading</h4> <h5>Smaller Heading</h5> <h6>Smallest Heading</h6>
