Last updated 2026-11-27
Start with structure and semantics
Accessibility begins with HTML that describes content correctly. Use one main heading per page, keep heading levels in order, mark up lists as lists and use buttons for actions and links for navigation. Native elements come with built-in keyboard and screen reader support, which custom components often need extra work to match.
Add a landmark structure with header, nav, main and footer. Screen reader users jump between landmarks, so clear regions save time and make the page easier to understand at a glance.
Check contrast and do not rely on colour alone
WCAG AA requires a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text and interface components. Test your palette with a contrast checker, including hover, focus and disabled states. Also avoid conveying meaning only with colour. Error messages should include text and an icon, and charts need labels or patterns as well as colour.
Allow text to be resized up to 200 percent without losing content or functionality. Use relative units and avoid fixed heights that clip text when it is enlarged.
Make forms and interactive elements usable
Every form field needs a visible label connected by the for attribute or by wrapping. Placeholder text disappears when someone types, so it should never replace a label. Group related controls with fieldset and legend, and explain required fields clearly. When an error occurs, describe what went wrong in text and point to the field that needs attention.
Ensure all interactive elements can be reached and operated with a keyboard. Show a clear focus indicator, avoid traps that stop focus from leaving a component, and make sure modal dialogs return focus to the element that opened them.
Describe images and media
Give informative images concise alternative text that conveys their purpose, and use an empty alt attribute for purely decorative images. Provide captions and transcripts for video and audio, and avoid autoplaying media with sound. Test your work with a screen reader such as NVDA or VoiceOver, and with keyboard only, because automated checkers catch only part of the problems people face.
Frequently asked questions
- Is an accessibility overlay enough?
- No. Overlays claim to fix problems automatically but often miss the underlying issues and can interfere with assistive technology. Fixing the code and content is the reliable route.
- What is the easiest first step?
- Run an automated checker, then test the main pages with a keyboard and a screen reader. Fix contrast, labels and heading structure first because they affect many users.
- Do I need to meet WCAG AAA?
- Most organisations target WCAG 2.2 AA, which is widely used in law and procurement. AAA criteria are useful for specific audiences but are not required for most sites.