Accessibility audit project
Definition and purpose
An accessibility audit is a repeatable examination of actual tasks, not a score inferred from CSS syntax. Start with a small checkout panel and record evidence for each identified defect.
Baseline panel
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CSS practice</title> <style> body { margin: 0; font: 16px sans-serif; color: #172033; background: white; } #a { width: 480px; } #b { outline: none; } </style> </head> <body> <main id="a"> <h1>Delivery details</h1> <p>Check your address before continuing.</p> <button id="b" type="button">Continue</button> </main> </body></html>Intentionally defective baseline: at 375px the panel exceeds the viewport, and the outline is suppressed.
Syntax and mental model
Run a baseline keyboard-only task; record whether focus is visible, the target fits, and labels communicate actions. At 320 CSS px check horizontal overflow, then apply spacing overrides and test enlarged text. Test reduced motion and forced colors. For normal text check contrast against the actual background (WCAG AA typically 4.5:1, with defined exceptions). Record the environment, reproduction, expected and observed behavior, fix, and retest. Include manual assistive-technology tests before claiming broader compliance.
Corrected panel
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CSS practice</title> <style> body { margin: 0; font: 16px sans-serif; color: #172033; background: white; } #a { max-width: 480px; width: 100%; overflow-wrap: anywhere; } #b { min-height: 44px; } #b:focus-visible { outline: 3px solid navy; } </style> </head> <body> <main id="a"> <h1>Delivery details</h1> <p>Check your address before continuing.</p> <button id="b" type="button">Continue</button> </main> </body></html>Compare keyboard navigation and narrow widths, recording observed outcomes.
Common mistakes
A screenshot or a passing automated scanner alone is insufficient; neither proves a complete keyboard task or assistive technology compatibility.
Practice and next steps
After trying the examples, complete the linked coding exercise and review questions. Predict the result before running your code. Prerequisite: Preferences and forced colors. Next lesson: Tokenization and parsing.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Accessibility audit project — knowledge check
Five questions on accessibility audit project.
What should an audit record?
Which baseline task exposes focus problems?
What is typical AA contrast for normal text?
Does a passing CSS check prove accessibility?
What follows a fix?