With Copilot
Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
Sign in to use Acquia Copilot
This article provides information about the accessibility check:
Heading elements <h1> to <h6> must only be used for structuring content, not for visual formatting. Headings define the hierarchy and organization of page content, which makes it easier for users to navigate and understand the content.
Use heading elements for structural purposes to create fewer accessibility issues and make the content easier to interpret. Use CSS for styling.
This section provides some benefits and problems associated with this success criteria.
Quick navigation:
Screen reader users rely on headings to quickly navigate through a page.
Comprehension:
Users with cognitive disabilities benefit from well-structured content that makes it easier to scan and understand.
SEO (Search Engine Optimization):
The SEO score improves when headings are used meaningfully. Proper headings help search engines to navigate the content better.
Misleading content structure:
If an <h3> is used only for bold text but has no logical connection to the content hierarchy, users who rely on headings for navigation are misled.
Inconsistent navigation:
Assistive technologies generate an outline of the page based on headings. Headings that are used only for styling make the outline ineffective.
Styling limitations:
Headings are included with default browser styling. Use of headings only for formatting rather than structure limits control over a consistent design.
This section provides some pass and fail examples of this check.
Headings used correctly to define sections:
<h1>Company Overview</h1>
<p>Welcome to our company. We specialize in...</p>
<h2>Our Services</h2>
<p>We offer a range of services, including...</p>
<h3>Web Development</h3>
<p>We build accessible and modern websites.</p>CSS instead of headings for styling text:
<p class="large-bold-text">Welcome to Our Store</p>
.large-bold-text {
font-size: 24px;
font-weight: bold;
color: #333;
}A heading to make the text big and bold:
<h3>Welcome to Our Store</h3>
<p>Shop now for the best deals.</p><h3> does not serve a structural purpose, and is only used for visual styling.Skipped heading levels for styling convenience:
<h1>Home</h1>
<h4>About Us</h4><h1> to <h4>, the logical structure breaks and it becomes hard for users to follow the hierarchy.Multiple <h1> elements that are used incorrectly:
<h1>Main Title</h1>
<h1>Another Section</h1><h1>.This issue affects:
This section provides instructions on how to review and fix the issue.
<h1> to <h6> serve a structural purpose.<p> or a <span> styled with CSS.Use proper heading hierarchy:
<h1>Main Title</h1>
<h2>Subheading</h2>
<h3>Detailed Topic</h3>This ensures a clear, logical structure for content.
Use CSS instead of headings for visual styling:
<p class="styled-text">Our Mission</p>
.styled-text {
font-size: 24px;
font-weight: bold;
}This maintains accessibility and design flexibility.
Do not skip heading levels:
<h1>About Us</h1>
<h2>Our Team</h2>
<h3>Meet the Founders</h3>Each level flows logically, which makes navigation easier.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.