Website accessibility basics: a practical guide to WCAG

What web accessibility means, how WCAG 2.2 is organised, the most common barriers on business websites and how to fix them — contrast, keyboard use, headings, forms, images, focus and testing.

Web accessibility means people can use your website regardless of disability, device or situation: someone using a screen reader, someone who navigates with a keyboard, someone with low vision, someone holding a baby in one arm and a phone in the other. Accessible sites are also easier for everyone to use, and they tend to be better structured for search engines.

This guide covers the basics that fix the most common barriers. It is not legal advice; accessibility requirements vary by country and sector, so check what applies to your organisation.

WCAG in a nutshell

The Web Content Accessibility Guidelines (WCAG), published by the W3C, are the most widely used standard. The current version is WCAG 2.2. Its guidelines are grouped under four principles — content must be:

  1. Perceivable: people can see or hear it, for example through text alternatives and sufficient contrast.
  2. Operable: people can use it, for example with a keyboard alone.
  3. Understandable: content and controls behave predictably and clearly.
  4. Robust: it works with assistive technologies such as screen readers.

Each guideline has success criteria at three levels: A, AA and AAA. Level AA is the target most organisations, laws and contracts refer to.

The most common barriers, and how to fix them

1. Low colour contrast

Light grey text on white is everywhere, and many people cannot read it. WCAG AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and for important interface elements such as input borders and icons.

Check your colour pairs with our contrast checker, which also suggests a passing alternative. When choosing brand colours, our palette generator shows which shades work with white or dark text.

2. Keyboard traps and invisible focus

Many people navigate with a keyboard or switch device. Every link, button and form control must be reachable with the Tab key, usable with Enter or Space, and show a clearly visible focus outline. Menus must open and close from the keyboard, and pop-ups must not trap focus.

Test it: put your mouse aside and try to complete your main task using only the keyboard.

3. Missing or poor text alternatives

Images that convey information need alt text that describes their purpose. Decorative images should have empty alt text so screen readers skip them. Icons used as buttons need an accessible name, such as "Open menu".

4. Confusing heading structure

Screen reader users often navigate by headings. Use one main heading per page, then subheadings in order, and use real heading elements rather than bold text that only looks like a heading.

5. Inaccessible forms

  • Every field needs a visible label connected to it, not just placeholder text.
  • Mark required fields clearly, in text as well as with an asterisk.
  • Explain errors in words next to the field, and say how to fix them.
  • Don't clear the form when there is an error.
  • Group related options, such as radio buttons, with a legend.

Link text should describe the destination ("download the price list") so it makes sense out of context.

7. Content that moves or flashes

Auto-playing carousels and animations can distract and cause discomfort. Provide pause controls, avoid flashing content, and respect the operating system's "reduce motion" setting.

8. Small touch targets

WCAG 2.2 introduced a minimum target size criterion at level AA. Buttons and links that are too small or too close together are hard to tap accurately. Generous tap targets help everyone on a phone.

9. Text that breaks when enlarged

People increase text size or zoom. Layouts should reflow without hiding content or requiring horizontal scrolling at narrow widths.

10. Missing page language and titles

Set the page language in the HTML so screen readers pronounce text correctly, and give every page a unique, descriptive title.

Accessibility in design, not just code

Most accessibility problems are cheaper to prevent in design than to fix in development:

  • Choose colour palettes that meet contrast requirements from the start.
  • Design visible focus states, error states and empty states.
  • Don't rely on colour alone to convey meaning; add text or icons.
  • Write clear, plain-language content and labels.
  • Plan keyboard behaviour for menus, dialogs and custom components.

How to test

  1. Automated checks in browser tools such as Lighthouse catch some issues, like missing alt text and low contrast, but not all.
  2. Keyboard test your main journeys.
  3. Screen reader test with VoiceOver (Mac and iPhone), TalkBack (Android) or NVDA (Windows).
  4. Zoom to 200% and check that nothing breaks.
  5. Ask real users with disabilities to try your key tasks when you can; nothing replaces it.

Common myths

  • "Accessibility overlays make a site compliant." Overlay widgets do not fix underlying code problems and can interfere with users' own assistive technology. Fix the site itself.
  • "Accessibility makes design boring." Many beautiful sites meet AA. Constraints such as contrast often improve clarity.
  • "Only a small number of people benefit." Captions, clear language, good contrast and keyboard support help a very wide range of people in many situations.

A starter checklist

CheckDone?
Text contrast at least 4.5:1 (3:1 for large text)
Everything works with the keyboard, focus is visible
Meaningful images have alt text
One H1, logical subheadings
Every form field has a label; errors are explained in text
Link text describes the destination
Motion can be paused; reduced motion respected
Tap targets are comfortably sized
Page works at 200% zoom
Page language and unique titles set

Writing for accessibility

Accessibility is not only code and colour. Clear writing helps people with cognitive disabilities, people reading in a second language, and everyone in a hurry:

  • Use plain words and short sentences.
  • Put the most important information first.
  • Use descriptive headings so people can scan.
  • Explain abbreviations and technical terms.
  • Write link text and button labels that describe the action ("Book a consultation").
  • Keep instructions next to the fields they relate to.

Accessibility in procurement

If you are commissioning a website or app, put accessibility in the brief and the contract:

  1. State the target standard, for example WCAG 2.2 level AA.
  2. Ask suppliers how they design, build and test for it.
  3. Ask for an accessibility review before launch, with issues fixed.
  4. Include accessibility in acceptance criteria, so a page that fails is not "done".
  5. Ask for an accessibility statement you can publish, describing the standard you aim for, known issues and how users can report problems.

Agreeing this at the start costs far less than discovering problems after launch.

A quick five-minute test for any page

  1. Press Tab repeatedly. Can you see where you are, and reach every control?
  2. Zoom to 200%. Does the page still work without horizontal scrolling?
  3. Turn off images. Is important information still available?
  4. Check the main text and buttons with our contrast checker.
  5. Read the headings alone. Do they describe the page?

Accessibility is ongoing

Accessibility is not a one-time certificate. New pages, new content and new features can introduce new barriers. Build accessibility checks into your publishing routine: alt text for new images, sensible headings, descriptive links and contrast checks for new colours. When you add a new component, such as a carousel or date picker, test it with a keyboard and screen reader before it goes live. Small, regular checks keep a site accessible far more reliably than occasional large audits.

Frequently asked questions

Which WCAG level should we aim for?

Level AA of WCAG 2.2 is the common target for public-facing websites.

Is accessibility a legal requirement?

In many countries and sectors, yes, especially for public bodies and larger organisations. Requirements vary; take legal advice for your situation.

How much does accessibility add to a project?

Building it in from the start adds relatively little. Retrofitting an inaccessible site costs considerably more.

Does accessibility help SEO?

Many accessible practices — clear headings, descriptive links, alt text, fast and well-structured pages — also help search engines understand your content.

Let’s build something great.

Tell us what you want to build, who it is for and what it needs to do. We’ll help you define a practical next step.

Start a project