Semantic Heading Levels #
Semantic and Hierarchical Structure #
- Headings follow a logical and hierarchical structure (e.g.,
<h1>for the main title, followed by<h2>,<h3>, etc.) to provide clear content organization for screen reader users. - The page includes a single
<h1>heading representing the main topic or title, making it easy for screen reader users to identify the purpose of the page. - Headings do not skip levels (e.g., jumping from
<h1>to<h3>) to ensure a smooth reading experience for screen reader users. - All headings are used to structure the content logically, not just for visual formatting, ensuring proper organization for screen readers.
- There are no empty or missing headings, which can disrupt the reading experience for screen reader users.
Descriptive and Informative Headings #
- All headings are descriptive and clearly summarize the content that follows, helping users understand the context without reading the entire section.
- Headings are concise but meaningful, avoiding unnecessary or ambiguous text
Creating accessible websites and mobile applications is essential for compliance with WCAG (Web Content Accessibility Guidelines), ADA (Americans with Disabilities Act), and EN 301 549. Accessibility ensures inclusivity for people with disabilities, including those who rely on screen readers, keyboard navigation, and assistive technologies.
This detailed accessibility checklist is divided into two parts:
- Website Accessibility Checklist
- Mobile App Accessibility Checklist (covering Android, iOS, and HarmonyOS)
π Website Accessibility Checklist #
A website should be easy to navigate, readable, operable, and understandable for everyone, including users with disabilities.
1. Page Structure & Navigation #
Why it Matters:
A clear structure allows screen readers and keyboard users to navigate content effectively.
β Best Practices:
- Use Semantic HTML: Properly structure content using
<header>,<nav>,<main>,<section>,<footer>. - Headings (
<h1>to<h6>) should be in a logical order:- β
Correct:
<h1>Home Loans</h1>β<h2>Features</h2>β<h3>Low Interest Rates</h3> - β Incorrect:
<h2>Welcome</h2>β<h4>Our Services</h4>(Skipping levels)
- β
Correct:
- ARIA Landmarks: Use
role="main",role="navigation",role="banner"to improve screen reader navigation. - Breadcrumb Navigation: Helps users track their location within the site.
- Provide a βSkip to Contentβ Link: Allows keyboard users to bypass repetitive navigation menus.
<a href="#main-content" class="skip-link">Skip to Main Content</a>
<nav role="navigation">
<ul>
<li><a href="/products">Products</a></li>
<li><a href="/support">Support</a></li>
</ul>
</nav>
<main id="main-content">
<h1>Banking Solutions</h1>
</main>
2. Keyboard Accessibility #
Why it Matters:
Many users navigate websites using a keyboard or assistive technology, making keyboard compatibility critical.
β Best Practices:
- All interactive elements (links, buttons, forms, dropdowns) must be operable via keyboard.
- Tab Order Should be Logical: The focus should move sequentially across elements.
- Keyboard-Trappable Content: No element should trap focus (users should be able to exit popups/modals).
- Provide Visible Focus Indicators: Ensure a clear visual highlight when an element is in focus.
<button tabindex="0">Apply Now</button>
3. Forms & Input Fields #
Why it Matters:
Forms are essential for user interactions (e.g., logins, sign-ups, loan applications). Without accessibility, they can be frustrating for users with disabilities.
β Best Practices:
- Use
<label>for all form fields to associate them with their input fields. - Error messages should be descriptive and announced by screen readers.
- Use ARIA attributes:
aria-required="true"for required fields.aria-invalid="true"for fields with errors.
Example (Accessible Form Field):
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required aria-required="true">
<span id="email-error" role="alert">Please enter a valid email address</span>
4. Color, Contrast & Visual Accessibility #
Why it Matters:
Users with low vision or color blindness need sufficient contrast and alternative ways to interpret information.
β Best Practices:
- Text should have a contrast ratio of at least 4.5:1.
- Do not use color alone to convey meaning (e.g., error messages should include text, not just red color).
- Ensure resizable text: The website should be readable at 200% zoom.
Example (Error Message with Text & Icon):
<p style="color: red;">β οΈ Invalid password. Try again.</p>
5. Links & Buttons #
Why it Matters:
Clear and descriptive links help all users understand the purpose of a link.
β Best Practices:
- Avoid generic phrases like “Click here” or “Read more.”
- Use descriptive text:
- β Good Example: View our home loan options.
- β Bad Example: Click here.
- Buttons should have clear action labels (“Submit Payment” instead of “OK”).
6. Media & Dynamic Content #
Why it Matters:
People with visual or hearing impairments need alternatives for media content.
β Best Practices:
- Provide closed captions for videos.
- Ensure videos do not autoplay (or provide a pause option).
- Use ARIA live regions for dynamic content updates.
<div aria-live="polite">Your balance has been updated.</div>
π± Mobile App Accessibility Checklist (Android, iOS, HarmonyOS) #
Touch Target & UI Design #
β Best Practices:
- Ensure all interactive elements are at least 48×48 pixels for easy tapping.
- Provide sufficient spacing between elements to prevent accidental taps.
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:minWidth="48dp"
android:contentDescription="Apply for a home loan"/>
Screen Reader Compatibility #
β Best Practices:
- Android: Test with TalkBack.
- iOS: Test with VoiceOver.
- HarmonyOS: Test with Huawei Screen Reader.
let applyButton = UIButton()
applyButton.accessibilityLabel = "Apply for Home Loan"
Color & Dark Mode #
β Best Practices:
- Support high-contrast themes.
- Ensure dark mode compatibility.
- Avoid using color as the sole means of conveying information.
Example (Android Dark Mode Support)
<item name="android:forceDarkAllowed">true</item>
Gesture & Motion Accessibility #
β Best Practices:
- Do not rely solely on swipe gestures (provide button alternatives).
- Allow users to disable motion animations if needed.
Example (Disable Motion in iOS)
if UIAccessibility.isReduceMotionEnabled {
myView.layer.removeAllAnimations()
}
Voice Control & Dictation #
β Best Practices:
- Ensure users can navigate with voice commands.
- Use dictation-friendly input fields.
Example (Voice Command Compatibility)
<EditText
android:importantForAccessibility="yes"
android:hint="Enter your name"/>
Notifications & Dynamic Updates #
β Best Practices:
- Ensure push notifications are screen-reader accessible.
- Use haptic feedback for important notifications.
Example (Accessible Toast Notification in Android)
Toast toast = Toast.makeText(context, "Loan approved!", Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER, 0, 0);
toast.show();
π Final Testing & Validation #
β Use Accessibility Testing Tools:
- Web: Lighthouse, Axe, WAVE.
- Android: Google Accessibility Scanner.
- iOS: Xcode Accessibility Inspector.
- HarmonyOS: Huawei Accessibility Test Framework.
β Manual Testing:
- Navigate using only a keyboard or screen reader.
- Test with different contrast settings and color blindness simulators.
π Conclusion #
By following these detailed accessibility guidelines, developers can create inclusive digital experiences for all users. Prioritizing accessibility is not just a compliance requirementβit improves usability for everyone! βΏπ‘π