Web Accessibility (WCAG): How to Make Your Website Work for Everyone
An accessible site works for people using screen readers, keyboards or with low vision, and it works better for everyone. The reference standard for that is WCAG.
Imagine a visitor browsing your site with a screen reader because they're blind, with a keyboard because they can't use a mouse, or on a phone in bright sunlight. Can they complete an order? Web accessibility means your site works for all of them, and what helps them helps everyone: clearer text, easier buttons and pages that are faster to understand. The reference standard for that is WCAG.
Key takeaways
- 1WCAG is the international accessibility reference, and level AA is the usual target for websites.
- 2At least 4.5:1 contrast for normal text keeps content readable for everyone.
- 3Every image needs alt text, and every function must work with a keyboard.
- 4Many accessibility elements directly serve SEO.
Web accessibility basics: the four principles of WCAG
WCAG builds all its requirements on four principles. Understand them and you understand why each criterion exists:
Content reaches more than one sense: alt text for images, captions for video and enough contrast.
Everything works with a keyboard, targets are big enough and there's enough time to interact.
Clear language, predictable behaviour and error messages that explain how to fix things.
Clean code that browsers and assistive technologies understand, now and in future.
You can read the guidelines and their levels on the WCAG overview from the W3C Web Accessibility Initiative, the reference that most web accessibility laws and standards around the world rely on.
1. Colour contrast: the first thing tested
Light grey text on a white background looks elegant in a design but is hard for many people to read, especially on phones in bright light. Level AA requires at least 4.5:1 contrast for normal text and 3:1 for large text. Here are examples with ratios actually calculated:
How much contrast do these colours have?
- 2.85 : 1Fails AA
Light grey on white: common in designs and hard to read
- 4.48 : 1Fails AA
Mid grey: looks acceptable but falls just short
- 4.54 : 1Passes AA
A barely darker shade passes
- 3.98 : 1Fails AA
White on a medium green: needs a darker background
- 5.87 : 1Passes AA
The same green, darker, passes comfortably
Test your brand colours before adopting them; you can build a harmonious palette with the Colour Palette Generator and then check its contrast.
2. Images and media
What locks visitors out of content
- Images with no alt text, or alt text like "image1"
- Important text written inside an image
- Video with no captions or transcript
What makes content accessible
- Alt text describing what the image conveys
- Real text on the page, not inside images
- Captions for video and transcripts for audio
Alt text also helps Google understand the image, as in our image optimisation guide.
3. Keyboard and focus
Some visitors never use a mouse. Try your site using only the Tab key:
- 1Every interactive element is reachable
Links, buttons, menus and form fields, in a logical order.
- 2Focus is always visible
A clear outline around the current element; don't design it away.
- 3Pop-ups close with Esc
And focus returns to where the visitor was.
- 4Big enough targets
WCAG 2.2 sets a minimum target size, and Google recommends around 48px on mobile.
A five-minute keyboard test
Put the mouse aside and open your home page. Press Tab again and again and watch: can you always see where you are on the page? Do you reach the menu, buttons and form in a logical order? Can you open the dropdown and close a pop-up with Escape? Can you submit the form with Enter? If you get stuck anywhere, you've found a real problem that everyone who doesn't use a mouse faces, and this simple test usually reveals more than automated tools do.
4. Forms and messages
Visible and programmatically tied to the field, not placeholder text that vanishes as you type.
Explaining what's wrong and how to fix it, next to the field.
Mark a wrong field with text or an icon as well as red.
An illustrative example: a helpful error message
A red "There was an error in the form" at the top of the page helps nobody, especially people who can't distinguish colours or who use a screen reader. A helpful message appears next to the field itself and says what's wrong and how to fix it: "Mobile number must start with 05 and have ten digits." The message is linked to the field in the code so a screen reader reads it when the user reaches that field, and the data already typed into other fields isn't cleared.
5. How to test your site
| Test | What it reveals |
|---|---|
| Lighthouse accessibility audit | Contrast, alt text and basic headings, automatically |
| Keyboard-only navigation | Unreachable elements and hidden focus |
| The device's built-in screen reader | Reading order and clarity of links and buttons |
| Zooming text to 200% | Layouts breaking and elements overlapping |
Even so, remember the limits of automated checks:
Make testing part of every new addition rather than a yearly project. When you add a page or component, check it with an automated tool and the keyboard before publishing. Fixing a problem the day it appears is far easier than fixing a hundred accumulated ones later, and it keeps web accessibility from becoming an overwhelming backlog.
Common web accessibility mistakes
Removing the focus outline for looks. The outline that appears around a button during keyboard navigation isn't a visual flaw; it's the only way users know where they are. Style it to suit your brand instead of hiding it.
Relying on colour alone. A field marked wrong only by a red border, or a link distinguished only by its colour, is invisible to people with colour blindness. Add text, an icon or an underline.
Buttons without names. A search or menu icon button with no text for screen readers is announced simply as "button". Give every button a clear name, even if it isn't shown on screen.
Overlays that promise to fix everything. Widgets that add a toolbar for fonts and colours don't fix the underlying problems in the code, and they're no substitute for building pages correctly from the start.
Treating it as a legal checkbox. Web accessibility isn't only about compliance; it decides whether real customers can buy from you. Ask a few people who use assistive technology to try your key journeys, and fix what stops them first.
Conclusion
Accessibility isn't an extra feature; it's part of a site's quality: enough contrast, alt text, full keyboard navigation, clear forms and regular testing. It serves SEO and user experience together, as in our UX principles guide and Arabic and RTL guide. If you'd like a site that's accessible from the ground up, explore our website development service.
Frequently asked questions
What is WCAG and which level is needed?
The Web Content Accessibility Guidelines from the W3C, currently at version 2.2. Level AA is the usual target for websites and includes, for example, at least 4.5:1 contrast for normal text.
Does accessibility affect SEO?
Many of its elements directly serve SEO: image alt text, ordered headings, clear links and fast, readable pages. Lighthouse also audits accessibility.
What contrast does large text need?
At level AA, 3:1 is enough for large text (about 24px regular or 18.66px bold and above), and 4.5:1 for normal text.
Are automated checkers enough to prove my site is accessible?
No. Automated tools catch only some problems, such as weak contrast or images without alt text, but they can't tell whether the alt text is useful or the navigation order makes sense. Combine automated checks with manual testing using a keyboard and a screen reader.
Is accessibility different on Arabic websites?
The principles are the same, but there are specific details: setting the page language and direction correctly so screen readers pronounce it in Arabic, choosing clear Arabic fonts at a sufficient size, and making sure directional icons flip in right-to-left layouts.
Sources & references

I believe technology is useful when it solves a clear problem — not when it's adopted because it's trendy. AI is a powerful tool for speeding up research, writing, analysis and automation, but it needs human expertise to review, guide and verify accuracy. That's why I prefer to start by understanding the business and its goals, then choose the simplest solution that delivers a measurable result, and build audience trust with honest, useful content.
- Reader rating
- 5.0(2)
- Published articles
- 81
- #accessibility
- #wcag
- #ux
How would you rate this article?
Be the first to rate
Comments
No comments yet. Share your thoughts!
