![]() |
VOOZH | about |
HTML heading tags, ranging from <h1> to <h6>, are used to define the structure and hierarchy of content on a web page. These tags help organize information clearly and improve both readability and accessibility.
Syntax
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
Global Attributes: Apply to all HTML elements, enhancing functionality and styling.
Event Attributes: Trigger JavaScript functions based on user actions, enhancing interactivity.
The six different HTML headings:
| Tag | Description | Size |
|---|---|---|
<h1> | Defines the most important heading. | 2em (32px) |
<h2> | Defines a level 2 heading. | 1.5em (24px) |
<h3> | Defines a level 3 heading. | 1.17em (18.72px) |
<h4> | Defines a level 4 heading. | 1em (16px) |
<h5> | Defines a level 5 heading. | 0.83em (13.28px) |
<h6> | Defines the least important heading. | 0.67em (10.72px) |
Example: Here, we displays headings from <h1> to <h6>, each representing different levels of importance in a webpage's structure.