Care & growth ·
Website accessibility basics that also help SEO
Contrast, headings, alt text, keyboard use and forms: the website accessibility basics that make your site easier for everyone, and clearer to search engines too.
By Kareem Mohamed, Web Developer at Digital House
Website accessibility means people can use your site whatever their eyesight, hearing, mobility or device: someone zooming text on a phone in bright sunlight, a customer who navigates with a keyboard, a screen reader user booking an appointment. The welcome surprise is that most of the basics also make your pages clearer to search engines. Here are the ones I build into every site, and how to check your own.
The reference standard is the W3C's Web Content Accessibility Guidelines (WCAG). Version 2.2 is the current recommendation, and level AA is the usual target for business websites. You do not need to read it all; the points below cover what most sites get wrong.
Colour contrast: readable in bright sunshine
Pale grey text on white looks elegant in a design file and disappears on a phone outdoors. WCAG asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text, and 3 to 1 for buttons, form borders and meaningful icons against their background.
- Check brand colours early with a contrast checker, such as the free one from WebAIM.
- Watch text placed over photos and sliders; add a solid or darkened backdrop behind it.
- Never rely on colour alone, such as a red border, to show an error or a required field.
Google does not score your contrast directly. But people who can read your page stay on it, and that is the point of ranking in the first place.
Headings and structure that people and Google both follow
Headings are an outline of the page. Screen reader users jump between them the way sighted visitors scan, and search engines use them to understand what each section is about. Choose a heading level for its place in the outline, not for its size; size belongs in the design.
- One
h1per page that says what the page is about. h2for main sections,h3for parts within them, without skipping levels for looks.- Real lists and tables for lists and tables, not lines of text styled to look like them.
- Page regions marked up as header, navigation, main content and footer.
- The page language declared, so screen readers pronounce Arabic and English correctly.
<html lang="ar" dir="rtl">
<body>
<header>…</header>
<main>
<h1>عيادة الأسنان في جدة</h1>
<h2>خدماتنا</h2>
</main>
</body>
</html>

Alt text and link text
Alt text is the description of an image that screen readers announce and search engines read. Write what the image shows and why it is there, in the language of the page: “Dentist explaining a treatment plan to a patient in the Jeddah clinic”, not “image1” or a string of keywords. Purely decorative images should have an empty alt attribute so they are skipped.
Link text works the same way. “Read more” and “click here” tell nobody where the link goes, and screen reader users often hear a list of links on its own. Descriptive text, such as “see our fees for next year's admissions”, helps them and gives Google context about the page you are linking to. If you are tidying images anyway, image optimisation with WebP and AVIF is a good companion job.
Can you use your website with only a keyboard?
Try it: click in the address bar, then press Tab repeatedly. You should see a clear outline move through every link, button and field, in a sensible order, and be able to open the menu, use the form and close any pop-up with the keyboard alone.
- A visible focus style on every interactive element; never remove the outline without replacing it.
- Sticky headers, chat widgets and cookie banners must not cover the element that has focus, which WCAG 2.2 added as a requirement.
- Menus and accordions that open with Enter or Space, and pop-ups that close with Escape.
- Buttons and links large enough to tap; WCAG 2.2 sets a minimum target size of 24 by 24 CSS pixels, with exceptions.
- A “skip to content” link at the top, so keyboard users can jump past the navigation.
Forms people can complete
Forms are where accessibility and revenue meet most directly. A field that cannot be understood is an enquiry that never arrives.
- A visible label for every field; placeholder text disappears as soon as someone types.
- Error messages in words that say what to fix, placed next to the field.
autocompleteattributes for name, email and phone, so browsers can fill them in.- Login and verification steps that do not depend on solving a puzzle or remembering a code, a WCAG 2.2 addition.
Contact forms that people actually finish covers the rest of the form, from field count to the thank-you page.
A 20-minute accessibility check you can do today
- Zoom the browser to 200 percent and check nothing overlaps or disappears.
- Tab through the homepage and contact page using the keyboard alone.
- Run the Lighthouse accessibility audit in Chrome's developer tools.
- Spot-check contrast on buttons, footers and text over images.
- Look at the alt text on your five most important images.
- Turn on VoiceOver on an iPhone or TalkBack on Android and listen to your homepage for a minute.
If you sell to customers in Europe, note that the European Accessibility Act now applies to many consumer-facing websites and online shops there. Wherever you are, it is easier to build accessibility in than to add it later, which is why it is on my website launch checklist, and why it belongs in ongoing website maintenance as new content is added. For the search side, the technical SEO checklist covers what sits alongside it.
Accessible websites are not a special edition for a few visitors. They are simply clearer websites.