
Web accessibility means that people with disabilities can use your website. That includes blind people using screen readers, people who cannot use a mouse, people who zoom or rely on captions and people who need clear, predictable pages. About 1.3 billion people live with a significant disability, according to the WHO, and almost everyone benefits at some point, for example in bright sunlight or with ageing eyes.
The World Wide Web Consortium (W3C) launched its Web Accessibility Initiative in 1997. The first Web Content Accessibility Guidelines (WCAG) followed in 1999, WCAG 2.0 in 2008 and WCAG 2.1 in 2018. The current version is WCAG 2.2, published in October 2023. It adds criteria such as a minimum target size and focus that is not hidden behind sticky headers.
Each WCAG criterion has a level: A (minimum), AA and AAA (highest). Most laws ask for level AA. In the European Union, the European Accessibility Act has applied since June 2025 to many products and services, including online shops, banking and e-books; in the United States, courts often apply the Americans with Disabilities Act to websites. Rules differ by country and organization size, so check what applies to you.
WCAG is built on four principles, often remembered as POUR:
The most effective thing you can do is use the right HTML element for the job. Native elements are accessible for free: a <button> can be focused, activated with Enter or Space and is announced as a button. A clickable <div> does not. Use <nav>, <main>, <header> and <footer> as landmarks, one <h1> per page and headings in logical order, because many screen reader users jump from heading to heading. Set the page language with <html lang="en"> for correct pronunciation. If you are building your first website, using semantic elements from the start is far easier than fixing it later.
Low contrast text is the most common accessibility error on the web. WCAG AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (about 24 pixels, or 19 pixels bold) and for interface elements such as input borders and icons. Check color pairs with the contrast checker in your browser's developer tools. Never use color alone to convey meaning: a red border on a field with an error needs a text message too, and links in body text should be underlined.
Put the mouse aside and try your site with Tab, Shift+Tab, Enter, Space and arrow keys. Every control must be reachable in a logical order. Watch for these points:
Give every input a visible <label> connected with the for attribute. A placeholder is not a label, because it disappears when the user types. Group radio buttons with <fieldset> and <legend>. When validation fails, explain the error next to the field and how to fix it. Use the autocomplete attribute so browsers can fill in names and addresses, and do not force users to solve puzzles just to log in.
ARIA attributes such as aria-expanded or role="dialog" add information for assistive technologies when HTML alone is not enough in custom widgets. The first rule of ARIA: do not use it if a native element can do the job. Wrong ARIA is worse than none: role="button" on a <div> promises keyboard behavior you must then program yourself. Also respect user settings: reduce animation with the prefers-reduced-motion media query and let text reflow when zoomed, which a responsive layout makes much easier.
Checkers such as Lighthouse, axe DevTools and WAVE find missing alt text and low contrast in seconds, but they catch only part of the problems. Add manual checks: the keyboard test, zooming to 200 percent and a screen reader such as NVDA on Windows, VoiceOver on macOS and iOS or TalkBack on Android. Best of all, ask disabled users. Avoid overlays that promise one-click compliance, links called "click here" and carousels that move on their own. Treat accessibility as part of every feature, not a final checklist.
Grade 10 Math: Functions and Reasoning - Quiz
1170 questions