What are HTML Headings? h1 to h6
HTML headings are used to show titles and subtitles on a web page. They help users and browsers understand important content.
HTML has 6 heading tags:
<h1> to <h6>Heading Levels (Big to Small)
| Tag | Size | Use |
| <h1> | Biggest | Main heading |
| <h2> | Large | Section heading |
| <h3> | Medium | Sub-section |
| <h4> | Small | Less important |
| <h5> | Smaller | Minor heading |
| <h6> | Smallest | Least important |
Example
<h1>Main Title</h1>
<h2>Chapter</h2>
<h3>Topic</h3>
<h4>Point</h4>
<h5>Sub point</h5>
<h6>Note</h6>Why Headings are Important?
- Make content easy to read
- Help SEO (Search Engines)
- Organize webpage content
- Improve user experience
Important Rules
- Use only one <h1> per page
- Do not use headings only for size
- Use them in order
One Line Remember
Headings give structure and importance to content
