Definition
The <h4>
HTML element is used to define a quaternary heading within a web page or a subsection of content. It represents a subheading that carries less prominence than the main heading (<h1>
), secondary heading (<h2>
), and tertiary heading (<h3>
).
Here’s an example of how to use the <h4>
element:
<h4>Product Features</h4>
In this example, the <h4>
element is used to introduce the subsection or topic of “Product Features”. The content within the <h4>
element provides a heading that is subordinate to the main heading, secondary heading, and tertiary heading.
The use of <h4>
allows for further granularity in organizing content within a section. It helps create a clear hierarchy of headings, making it easier for users and search engines to navigate and understand the structure of the webpage.
As with other heading elements, it is important to use <h4>
in a structured and consistent manner. By doing so, you enhance the accessibility of the webpage and provide a better user experience for individuals using assistive technologies.
Remember that the visual appearance of headings can be customized using CSS to match the desired design of the webpage. However, it is essential to ensure that the heading hierarchy is maintained and not compromised by the visual styling.