In the last two lessons you applied accessibility principles and the necessary ARIA attributes to The Blue Cup, and you checked them by reading the code and the DevTools accessibility pane. But accessibility isn't proven in the code: it's proven by using the site the way people use it. Can you book a table without touching the mouse? What exactly does someone hear when they go through the menu with a screen reader? Can everything still be read when you zoom in to 400%? In this lesson you'll learn to test accessibility systematically: what automated tools can and can't detect; how to use Lighthouse, axe DevTools, WAVE and the browser's accessibility pane; and how to carry out the manual tests that no tool can replace: with the keyboard, with a screen reader, with zoom and with colour blindness simulation. You'll finish with a final checklist and a complete audit of The Blue Cup.

Contents

  1. Automated testing versus manual testing
  2. Lighthouse
  3. axe DevTools
  4. WAVE
  5. The DevTools accessibility pane
  6. Keyboard testing: a step-by-step protocol
  7. Screen reader testing
  8. Zoom testing: 200% and 400%
  9. Colour blindness simulation and other emulations
  10. Final accessibility checklist
  11. The accessibility statement (in passing)
  12. Project: auditing The Blue Cup

Automated testing versus manual testing

Automated tools analyse the code and the rendered page looking for breaches that a program can check. They're fast, free and never get tired. But they can only check what can be measured: that an image has an alt, not that the alt describes the image well.

Studies on the subject agree on an order of magnitude: automated tests detect between 30% and 40% of accessibility problems (some estimates, counting by number of issues rather than by type of criterion, go somewhat higher). The rest requires human judgement.

Aspect Automated Manual
Image without alt Yes Yes
alt that doesn't describe the image ("photo1.jpg", "image") Only obvious cases Yes
Contrast of text on a flat colour Yes Yes
Contrast of text on an image or gradient No (asks for review) Yes
Field without a label Yes Yes
Label that doesn't explain what to enter No Yes
Duplicate id, misspelt ARIA or non-existent roles Yes Difficult
Headings that skip levels Yes Yes
Headings that don't describe their section No Yes
Interactive element that can't be used with the keyboard Partially Yes
Logical focus order No Yes
Visible focus on every element Partially Yes
Keyboard trap (focus can't leave a component) No Yes
Synchronised, accurate captions No (only that a track exists) Yes
Plain language, understandable instructions No Yes
The page is still usable at 400% No Yes

The professional strategy combines both:

graph LR
    A["Automated tests<br/>(Lighthouse, axe, WAVE)"] --> B["Fix what was found"]
    B --> C["Manual tests<br/>(keyboard, screen reader, zoom, colour)"]
    C --> D["Fix what was found"]
    D --> E["Run the automated tests again"]
    E --> F["Ideally: testing<br/>with users"]
  • Automated first: they quickly get rid of the obvious errors, so that the manual tests can focus on what only a person can assess.
  • A score of 100 doesn't mean the site is accessible: it means the problems the tool knows how to look for weren't found.
  • Ideally, in projects with the resources, you complete the process with testing with disabled users, who find problems that no protocol anticipates.

Lighthouse

Lighthouse is the auditing tool built into Chrome and Edge DevTools. It analyses accessibility, performance, best practices and SEO (you'll use it for performance in the next lesson).

  1. Open the page with Live Server and open DevTools (F12).
  2. Go to the Lighthouse tab (if you can't see it, look for it in the » menu).
  3. Under Mode, leave Navigation; under Device, choose Mobile or Desktop; under Categories, tick at least Accessibility.
  4. Click Analyze page load.

The report gives a score from 0 to 100 and a list of audits:

  • Failed, with the element involved and a link to the explanation.
  • Additional items to manually check: Lighthouse reminds you of what it can't verify, such as logical focus order.
  • Passed and not applicable.

Under the hood, Lighthouse uses the axe-core rules engine, but only some of its rules. It's a good first pass, quick and always available.

axe DevTools

axe DevTools is a browser extension (from Deque, the company behind axe-core) with a free version. It adds a tab to DevTools.

  1. Install the extension from your browser's extension store.
  2. Open the page and DevTools; go to the axe DevTools tab.
  3. Click Scan ALL of my page.

For each issue it shows:

  • The severity: critical, serious, moderate or minor.
  • The related WCAG criterion.
  • The affected element, with a button to highlight it on the page and another to inspect it.
  • How to fix it.

axe follows an interesting design principle: it tries not to produce false positives. When it isn't sure, it doesn't mark it as an error, but as needs review. You have to check those cases yourself.

WAVE

WAVE (Web Accessibility Evaluation Tool), from WebAIM, is another free tool, available as an extension and as a web service (https://wave.webaim.org/, only for published pages). Its approach is visual: it draws icons on the page itself, next to each element.

Icon (colour) Meaning
Red Errors: almost certain problems (image without alt, field without a label)
Red with contrast Contrast errors
Yellow Alerts: possible problems to review (redundant links, very small text, suspicious heading)
Green Features: accessibility elements in place (an alt, a label, a skip link)
Blue Structure: headings, lists, landmarks
Purple ARIA: ARIA attributes detected

Its side panel also has some very useful tabs for manual testing: Structure shows the outline of headings and regions; Order shows the keyboard navigation order; and the Styles button turns off the CSS so you can see the page in code order, the way a screen reader "reads" it.

Lighthouse, axe and WAVE overlap a lot, but not completely: running at least two of them reduces omissions.

The DevTools accessibility pane

You've already used it in Accessible Tables and in the previous lesson. Let's review what it offers:

  • Accessibility tree: the hierarchy as assistive technologies receive it. In Chrome, under Elements > Accessibility, enable Enable full-page accessibility tree: a button appears to toggle between the DOM tree and the accessibility tree.
  • Computed properties: role, name, description and where the name comes from (the label, the alt, an aria-labelledby…). It's the quickest way to diagnose why something is announced wrongly.
  • ARIA attributes of the selected element.
  • Contrast: in the colour picker of the Styles panel, as you saw in Web Accessibility Basics.
  • CSS Overview (in the » menu): a summary of the whole stylesheet with a section on contrast issues across the page.

Keyboard testing: a step-by-step protocol

It's the most important and cheapest manual test: you don't need to install anything. Do it on every page, without touching the mouse.

  1. Load the page and press Tab once. The first element to receive focus must be the "Skip to content" link, and it must be visible.
  2. Activate it with Enter and press Tab: the focus must go to the first interactive element in the main content.
  3. Reload and go through the whole page with Tab, from start to finish. At each stop, check:
    • Can you see where the focus is?
    • Is the order logical, the same as the reading order of the page?
    • Are there elements that receive focus for no reason (something non-interactive with tabindex)?
    • Are there interactive elements you can't reach?
  4. Go backwards with Shift + Tab and check that the reverse route works too.
  5. Use every control: links with Enter; buttons with Enter and with Space; checkboxes with Space; option groups with the arrow keys; select elements with the arrow keys; details with Enter or Space; video and audio, with their controls.
  6. Open and close the dialogs: when they open, the focus must go inside; Esc must close them and the focus must return to the button that opened them.
  7. Look for keyboard traps: go into each iframe (map, YouTube video) and check that you can get out with Tab or Shift + Tab.
  8. Fill in and submit a form using only the keyboard, also triggering an error (leave a required field empty).
  9. Scroll the scrollable regions (the wide tables on mobile): once they receive focus, the arrow keys should move them.

On macOS, Safari doesn't move the focus to links with Tab by default. Turn it on in Safari > Settings > Advanced > "Press Tab to highlight each item on a webpage", or use Option + Tab. And in System Settings > Keyboard, turn on "Keyboard navigation".

Screen reader testing

A screen reader turns the page into speech (or braille) and offers shortcuts for moving around it. Testing with one is the best way to understand how your HTML "sounds". The most widely used are free:

Screen reader System Recommended browser for testing How to turn it on
NVDA Windows Firefox or Chrome Free download from nvaccess.org; Ctrl + Alt + N to start it
VoiceOver macOS Safari Built in; Cmd + F5 to turn it on or off
VoiceOver iOS / iPadOS Safari Settings > Accessibility > VoiceOver
TalkBack Android Chrome Settings > Accessibility > TalkBack (the exact menu name varies by manufacturer)
JAWS Windows Chrome or Edge Paid, with a demo mode; widely used in professional settings

Before you start, learn how to stop the speech (Ctrl in NVDA and macOS VoiceOver) and how to turn the screen reader off. On a phone, set up an accessibility shortcut beforehand to turn it on and off, because the gestures change when the screen reader is active.

Basic desktop commands

Action NVDA (Windows) VoiceOver (macOS)
Screen reader modifier key Insert (called the "NVDA key") Control + Option (called "VO")
Stop speech Ctrl Ctrl
Read everything from here NVDA + ↓ VO + A
Next / previous item ↓ / ↑ VO + → / VO + ←
Next heading H (1 to 6 for a specific level) VO + Cmd + H
Next landmark D Using the rotor (VO + U)
Next link K VO + Cmd + L
Next form field F VO + Cmd + J
Next table T VO + Cmd + T
Move through table cells Ctrl + Alt + arrow keys VO + arrow keys
List of headings, links, landmarks… NVDA + F7 Rotor: VO + U, and arrow keys to change list
Activate the item Enter VO + Space

NVDA has two modes: browse mode, in which letters act as shortcuts (H, K…), and focus mode, in which keys type into form fields. It switches automatically when you enter a field; you can also toggle with NVDA + Space.

Basic mobile gestures

Action VoiceOver (iOS) TalkBack (Android)
Next / previous item Swipe right / left with one finger Swipe right / left with one finger
Activate the selected item Double-tap Double-tap
Read the whole screen Swipe up with two fingers Depending on the version, from the TalkBack menu (three-finger tap or corner gesture)
Change navigation mode (headings, links…) Rotor: rotate two fingers on the screen; then swipe up or down Swipe up or down to change the type of item (in recent versions)
Stop speech Two-finger tap Two-finger tap

TalkBack gestures have changed between versions; if one doesn't work, check the tutorial built into its settings.

What to listen for

With the screen reader on, go through each page with these questions:

  1. On load: does it announce the title and the correct language (does it pronounce English properly)?
  2. List of headings (NVDA + F7 or the rotor): can the page be understood from them alone?
  3. List of landmarks: are banner, navigation, main and contentinfo there? Can each complementary or named region be told apart from the others?
  4. List of links: does each link make sense out of context? Is none of them called "here" or "more"?
  5. Images: does the alt provide what's needed? Are decorative ones ignored?
  6. Tables: as you move through the cells, does it announce the row and column headers?
  7. Forms: does each field announce its label, its type, whether it's required and its hint? Are the error messages heard?
  8. Dynamic changes: are messages that appear without moving the focus announced?

Zoom testing: 200% and 400%

Two WCAG level AA criteria are checked with the browser's zoom (Ctrl + + and Ctrl + -; Ctrl + 0 to go back to 100%):

Test Criterion What to check
Zoom to 200% 1.4.4 Resize Text All the text gets larger; nothing is cut off, overlaps or disappears; everything still works
Zoom to 400% in a window 1280 px wide 1.4.10 Reflow Equivalent to a viewport of 320 CSS px: the content rearranges itself into one column without horizontal scrolling (except content that inherently needs it, such as data tables, maps or charts)

As you made The Blue Cup responsive in Module 9, with breakpoints in rem and unrestricted zoom, both tests should pass easily. Also try, in Firefox, View > Zoom > Zoom Text Only, and in Chrome, Settings > Appearance > Font size: that way you check that your sizes in rem respect the user's large-text preference.

Colour blindness simulation and other emulations

Chrome and Edge DevTools can simulate how a person with different types of vision sees the page:

  1. Open DevTools and press Ctrl + Shift + P (Command Menu).
  2. Type "Rendering" and choose Show Rendering.
  3. In the panel that appears, find Emulate vision deficiencies and choose an option:
Option Simulates
Blurred vision Blurred vision
Reduced contrast Reduced contrast (for example, due to age or a screen in the sun)
Protanopia No sensitivity to red
Deuteranopia No sensitivity to green (the most common)
Tritanopia No sensitivity to blue
Achromatopsia Vision without colour

Go through the page with each simulation and ask yourself: is there any information that depends only on colour and has been lost?

The same Rendering panel lets you emulate other preferences worth testing:

  • prefers-reduced-motion: reduce: check that animations are turned off (if there are any).
  • prefers-color-scheme: dark: useful if one day you add a dark theme.
  • forced-colors: active: simulates Windows high-contrast mode, in which the system imposes its own colours. Check that buttons, field borders and focus are still visible. (Background colours disappear; borders and outlines remain.)

Final accessibility checklist

This list brings together the checks from the whole module. Combined with the one from HTML Best Practices, it's the complete review you'll carry out in the final project.

Automated

  • [ ] Lighthouse, Accessibility category: no failed audits.
  • [ ] axe DevTools: no issues; cases needing review checked.
  • [ ] WAVE: no errors; alerts reviewed and justified.

Structure and content

  • [ ] Correct lang on the page and on parts in another language.
  • [ ] One h1; headings without skips which, read on their own, work as a table of contents.
  • [ ] Landmarks: header, nav with a name, one main, footer; aside and regions named if there are several.
  • [ ] Informative images with a descriptive alt; decorative ones with alt="" or aria-hidden.
  • [ ] Links that make sense out of context.
  • [ ] Tables with a caption and th headers with scope.
  • [ ] Video with captions (kind="captions" if they include sounds); spoken audio with a transcript.

Keyboard and focus

  • [ ] "Skip to content" link, first and visible when it receives focus.
  • [ ] Everything can be reached and used with the keyboard; no traps.
  • [ ] Logical focus order; no positive tabindex.
  • [ ] Focus always visible and not obscured.

Forms

  • [ ] Every field with a label; groups with fieldset and legend.
  • [ ] Required fields indicated with text and required.
  • [ ] Hints associated with aria-describedby; autocomplete on personal data.
  • [ ] Errors announced in text.

Visual

  • [ ] Contrast of 4.5:1 for normal text, 3:1 for large text and components.
  • [ ] Nothing depends on colour alone.
  • [ ] Zoom to 200% with no loss; at 320 px wide, no horizontal scrolling.
  • [ ] Motion can be turned off with prefers-reduced-motion.

Screen reader

  • [ ] A complete run-through of at least the key pages with a screen reader.
  • [ ] Dynamic messages announced through live regions.

The accessibility statement (in passing)

An accessibility statement is a page that reports the site's level of compliance, the content that isn't yet accessible (and why), the date of the last review and how to report problems or request information in another format. In Spain, Royal Decree 1112/2018 makes it mandatory for public-sector sites, with an official template. For a private business like The Blue Cup it isn't necessarily mandatory, but it's good practice: it shows commitment and offers a channel for people to tell you about problems you hadn't spotted. If you publish one, link to it from the footer, next to the privacy policy, and be honest: a statement claiming full compliance without having checked it is worse than having none. As with other legal texts, it's a good idea to have a professional review it.

Project: auditing The Blue Cup

You're going to audit the seven pages using the method from this lesson and record the results in an audit report: a table with each finding, the test that detected it, the WCAG criterion, the severity and the fix. Some of the results that follow are fictitious but plausible: they represent what might come up in a real audit of a site like this one. If a result doesn't appear in your project, check it anyway.

  1. Automated tests

Run Lighthouse (Accessibility category, mobile mode) and axe DevTools on each page, and WAVE on the main pages. Initial results:

Page Lighthouse axe WAVE
index.html 100 0 issues 0 errors, 1 alert (redundant link)
menu.html 100 0 issues 0 errors
bookings.html 100 0 issues 0 errors
gallery.html 96 1 serious: video-caption 0 errors
news.html 100 0 issues 0 errors
contact.html 100 0 issues 0 errors
privacy.html 100 0 issues 0 errors

In addition, under Best practices for news.html, Lighthouse shows a console error: the interview iframe still points to VIDEO_ID. This was already noted in the review in HTML Best Practices.

  1. Manual tests

Test Result
Keyboard (seven pages) Skip link visible and working; logical order; focus always visible, in the blue footer too. The conditions dialog receives focus and returns it when closed with Esc. The contact map adds several Tab stops (its internal zoom buttons and links) but doesn't trap the focus: you get out with Tab. No issues
NVDA with Firefox See findings 3 and 4. Everything else correct: titles, language, headings, table headers, form labels and hints, and the gluten-free filter result
VoiceOver with Safari on iOS Same results as with NVDA; the booking form announces the hints after each field
Zoom 200% and 400% No loss of content or horizontal scrolling; only the tables scroll within their region, an accepted exception for data tables
Vision simulation No information depends on colour alone: the current page in the menu keeps its border, links keep their underline, the chart keeps its text labels
Forced colours Buttons, fields and focus visible

  1. Report of findings and fixes

No. Page Finding Test WCAG criterion Severity Fix
1 gallery.html The video track is kind="subtitles", but its content includes sounds ("[Sound of the coffee machine]"): they're subtitles for deaf people, that is, captions axe (video-caption) 1.2.2 Captions (Prerecorded) Serious Change to kind="captions"
2 index.html Logo ("The Blue Cup home page") and first menu link ("Home") next to each other and with the same destination WAVE (alert) — Informative Kept: a linked logo is a very widespread convention and the menu must be complete. Alert justified
3 index.html, news.html Unnamed "complementary" regions appear in NVDA's list of landmarks: the offer on the home page and the newsletter NVDA (landmarks list) 1.3.1 Info and Relationships (good practice) Minor Name each aside with aria-labelledby pointing to its heading
4 index.html In the offer, the screen reader reads "white coffee and croissant for €4.20 €3.50": the strikethrough of s isn't announced, and it isn't clear which is the current price NVDA and VoiceOver 1.3.1 Info and Relationships Moderate Add visible words that explain the two prices
5 news.html iframe with a placeholder video identifier Lighthouse (best practices) — Pending Already noted for deployment

  1. Applying the fixes

Finding 1 (gallery.html):

      <track kind="captions" src="media/intro.en.vtt" srclang="en" label="English" default>
  • kind="subtitles" is intended for people who hear the audio but don't understand the language: it only transcribes the dialogue.
  • kind="captions" is intended for people who can't hear: it transcribes the dialogue and also the relevant sounds, such as the coffee machine. That's what the file you wrote in Embedding Videos contains.
  • The .vtt file doesn't change. Some players show the track with a different icon (CC).

Finding 3 (index.html and news.html):

      <aside class="featured" id="offer" aria-labelledby="offer-title">
        <h2 id="offer-title">Offer of the week</h2>
    <aside id="newsletter" aria-labelledby="newsletter-title">
      <h2 id="newsletter-title">Monthly newsletter</h2>

Now the list of landmarks shows "Offer of the week, complementary" and "Monthly newsletter, complementary". The small "Did you know…?" aside, inside the autumn coffee news item, has no heading and is a short note within an article: it's left as it is.

Finding 4 (index.html), in the offer aside:

        <p><mark>Full breakfast</mark>: white coffee and croissant. Was <s class="old-price">€4.20</s>; now <strong class="price">€3.50</strong>.</p>
  • Most screen readers, with their default settings, don't announce the strikethrough of s or del, just as they don't announce most formatting changes. The meaning that the strikethrough conveys visually ("this price no longer applies") was being lost.
  • The words "Was" and "now" solve the problem for everyone: also for people who see the page but don't notice the strikethrough, or who read it in a feed reader without styles.
  • No ARIA or hidden text is needed: the best accessibility solution is often clearer text.

  1. Testing again

Run axe again on gallery.html (0 issues, Lighthouse 100), and use NVDA to check the list of landmarks on index.html and news.html and the reading of the offer on the home page. Save the audit report with the date: in the final project you'll update it before publishing.

Common Mistakes and Tips

  • Settling for 100 in Lighthouse: it only means it didn't find what it knows how to look for. Manual tests are essential.
  • Testing with a screen reader without knowing how to use it and drawing the wrong conclusions ("it doesn't read anything"): first spend ten minutes on its tutorial and the basic commands.
  • Navigating with the screen reader using only Tab: that way you only hear the interactive elements. Users navigate by headings, landmarks and with the arrow keys; test that way too.
  • Testing only in the desktop browser: VoiceOver on iOS and TalkBack on Android reveal different problems, especially in forms and touch elements.
  • "Fixing" an alert without thinking: WAVE alerts and axe's cases needing review aren't always errors. Decide, and record why.
  • Doing the audit only once: every content change can introduce problems. Repeat the automated tests with every change and the manual tests with every major version.
  • Tip: record or write down what you hear with the screen reader on the key pages. By comparing after a change, you'll spot straight away if something has got worse.

Exercises

Exercise 1. Classify each check according to whether it can be done with an automated tool, only manually, or both ways (the automated tool detects part of it):

a) A button with no text or accessible name. b) The alt of a photo says "Product image". c) The focus jumps from the menu to the footer and then back to the content. d) Grey #999999 text on white. e) White text on a photo of the storefront. f) The form can be submitted with the keyboard.

Exercise 2. Write the keyboard testing protocol specifically for bookings.html: a numbered list with each action and the expected result, from when the page loads until a booking is submitted.

Exercise 3. When auditing a fictitious page, axe reports: "Elements must meet minimum color contrast ratio thresholds — Element has insufficient color contrast of 3.2 (foreground color: #6b8cae, background color: #ffffff, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1". Explain what the message means and suggest two ways to fix it.

Solutions

Solution 1.

a) Both: the tool detects a button without a name; the person also checks that the name it is given is understandable. b) Manual: there's an alt, so the tool considers it fine (some warn about generic texts, but they can't know what the photo shows). c) Manual: logical focus order can't be checked automatically (WAVE helps visualise it with its Order tab, but the judgement is human). d) Both, and the automated check is enough: 2.85:1, it fails. e) Manual: on an image, the tool can't calculate the contrast and marks it as needing review. f) Manual: you only know by trying.

Solution 2.

  1. Load bookings.html and press Tab: "Skip to content" appears.
  2. Enter: the page goes to the main; Tab: the focus goes to the "See booking conditions" button.
  3. Enter: the dialog opens, with the focus inside; the screen reader announces "Booking conditions, dialog".
  4. Esc: it closes and the focus returns to the button.
  5. Tab through the "Your details" fields: name, email, phone (with its hint announced). Focus visible on all of them.
  6. In "What would you like to book?", Tab enters the group; the arrow keys switch between "A table" and "A place on the bread-making workshop".
  7. Date: type it with the keyboard (or open the picker and choose with the arrow keys); time and number of guests, the same, checking that their hints are announced.
  8. Occasion: type and choose a suggestion from the datalist with the arrow keys.
  9. Area: arrow keys between "Indoors" and "Terrace".
  10. Comments: type; Tab leaves the textarea (it doesn't get trapped).
  11. Privacy checkbox: Tab and Space to tick it.
  12. First, leave the name empty and press Enter on "Send booking": the browser moves the focus to the field and shows the error message.
  13. Fill in the name and submit: the form is submitted (check it in DevTools > Network).

Solution 3. The text (colour #6b8cae, a greyish blue, on white) has a contrast of 3.2:1. At 16 px and normal weight, it counts as normal text, which requires 4.5:1. Fixes:

  1. Darken the text colour until it reaches 4.5:1 or more, for example using the brand blue #1f4e79 (8.66:1).
  2. Make it large text (24 px or more, or 18.66 px or more in bold), which only requires 3:1. This only makes sense if the design justifies it: you shouldn't enlarge text just to get round the requirement.

The first is almost always the better option.

Conclusion

You've learnt that accessibility is checked by combining automated tests, which detect around 30–40% of problems and do so quickly, with manual tests that no tool can replace. You know how to use Lighthouse, axe DevTools and WAVE, how to interpret their severities, alerts and cases needing review, and how to diagnose problems with the DevTools accessibility pane. You have a step-by-step keyboard testing protocol, you know the basic commands of NVDA, VoiceOver and TalkBack and what to listen for with them, and you know how to check 200% zoom and 400% reflow, simulate different types of vision and emulate system preferences. You have a final checklist and you know about the accessibility statement. The audit of The Blue Cup has fixed the video track (now kind="captions"), named the complementary regions and clarified the struck-through price in the offer with words. The site is now correct, valid and accessible. One last question remains from those you asked yourself at the end of the responsive design module: does it load quickly on a poor connection? In the next lesson, Performance and Resource Loading, you'll learn how the browser loads a page and how to optimise images, frames and scripts so that The Blue Cup reaches the screen as soon as possible.

HTML Course

Module 1: Introduction to HTML

Module 2: Text Formatting in HTML

Module 3: Links and Media in HTML

Module 4: Tables in HTML

Module 5: Forms in HTML

Module 6: HTML5 Semantic Elements

Module 7: Advanced HTML Techniques

Module 8: Integrating HTML and CSS

Module 9: Responsive Web Design

Module 10: Best Practices and Accessibility

Module 11: Project: Building a Complete Website

© Copyright 2026. All rights reserved