Wipidia
web•Updated: 01/10/2026•6 views

Building Accessible Web Applications: A Practical WCAG 2.2 Compliance Guide

Understanding WCAG 2.2 success criteria, common accessibility failures, semantic HTML, ARIA, keyboard navigation, testing tools, and the legal landscape businesses now face.

By Wipidia Editorial Desk•Fact-Checked & Peer-Reviewed
Building Accessible Web Applications: A Practical WCAG 2.2 Compliance Guide
WCAG 2.2 is the current global standard for web accessibility, and compliance has become a legal requirement in many jurisdictions rather than a best practice. This guide explains the standard's structure, the most common accessibility failures on real websites, practical fixes using semantic HTML and ARIA, and the testing tools and legal context developers need to know.

Introduction

Web accessibility is no longer a niche concern handled after launch — it is a legal requirement in a growing number of countries, and a genuine usability issue affecting a significant share of internet users with visual, motor, auditory, or cognitive disabilities. WCAG 2.2 (Web Content Accessibility Guidelines, version 2.2), published by the W3C, is the current global reference standard that most laws and procurement policies point to.

This guide covers what WCAG 2.2 actually requires, the accessibility failures that show up most often on real websites, how to fix them using semantic HTML and ARIA, the tools used to test compliance, and the legal landscape businesses now operate under.

What Is WCAG 2.2?

WCAG 2.2 organizes accessibility requirements around four principles, often remembered by the acronym POUR:

  • Perceivable — information must be presentable in ways users can perceive (text alternatives for images, captions for video, sufficient color contrast).
  • Operable — interface components must be usable via keyboard and other input methods, without time limits that are too restrictive.
  • Understandable — content and interface behavior must be predictable and clearly explained.
  • Robust — content must work reliably across current and future assistive technologies, including screen readers.

Each guideline under these principles has specific, testable success criteria, rated at three conformance levels:

  • Level A — the minimum, addressing the most severe barriers.
  • Level AA — the level most laws and organizations target; addresses a broader range of barriers.
  • Level AAA — the highest level, not required site-wide by most standards because some criteria are difficult to meet universally.

WCAG 2.2 added several new success criteria beyond WCAG 2.1, with particular emphasis on focus visibility, target size for touch and click interactions, and clearer requirements around authentication methods that don't rely solely on cognitive tests like memorizing passwords.

Common Accessibility Failures on Real Websites

Automated and manual audits consistently surface the same handful of failures across most websites, regardless of industry:

  • Insufficient color contrast between text and background, especially light gray text on white backgrounds.
  • Missing or unhelpful alt text on meaningful images, or decorative images missing an empty alt="" that would let screen readers skip them.
  • Form fields without properly associated labels, forcing screen reader users to guess what a field expects.
  • Keyboard traps and unreachable interactive elements — buttons, menus, or modals that can be opened with a mouse but not with keyboard-only navigation.
  • Missing or invisible focus indicators, making it impossible for keyboard users to see which element is currently selected.
  • Non-descriptive link text such as "click here" repeated across a page, which is meaningless when read out of context by a screen reader.
  • Touch targets that are too small or too close together, causing accidental taps for users with motor impairments.
  • Auto-playing media or content with flashing elements that can trigger seizures or disorient users with vestibular disorders.

Fixing Accessibility with Semantic HTML

The single highest-leverage fix for most accessibility problems is using semantic HTML correctly before reaching for ARIA at all. Native HTML elements come with built-in accessibility behavior that custom-built components have to replicate manually.

  • Use <button> for anything clickable that performs an action, not a styled <div> with a click handler.
  • Use <nav>, <main>, <header>, <footer>, and <section> to give the page structure that screen readers can navigate by landmark.
  • Use real heading tags (<h1>–<h6>) in a logical order — screen reader users frequently navigate a page by jumping between headings.
  • Use <label> elements properly associated with form inputs via the for/id attributes.
  • Use <table> with <th> and appropriate scope attributes for genuinely tabular data, not for layout.

The general rule: "No ARIA is better than bad ARIA." ARIA should fill gaps semantic HTML cannot cover, not replace it.

Using ARIA Correctly

ARIA (Accessible Rich Internet Applications) attributes let developers describe custom components — tabs, modals, accordions, custom dropdowns — to assistive technology when native HTML has no equivalent element.

Common, correctly-scoped ARIA patterns:

  • aria-label or aria-labelledby to name an element when visible text alone isn't sufficient (e.g., an icon-only button).
  • role="dialog" combined with proper focus management for modal windows.
  • aria-expanded on elements that toggle visibility, such as accordions and dropdown menus.
  • aria-live regions to announce dynamic content changes (like a form validation error or a loading status) to screen reader users without requiring a page refresh.

Misused ARIA is a frequent cause of accessibility bugs — adding role="button" to a <div> without also handling keyboard events (Enter/Space) creates something that looks accessible to an automated scanner but isn't actually usable.

Keyboard Navigation

A genuinely accessible site must be fully operable using only a keyboard. Practical checks:

  • Every interactive element (links, buttons, form fields, custom widgets) can be reached using Tab and activated using Enter or Space.
  • Tab order follows a logical visual and reading sequence.
  • Focus is never trapped inside a component (except intentionally inside an open modal, with a clear way to exit).
  • A visible focus indicator (outline or highlight) appears on whatever element currently has keyboard focus — WCAG 2.2 strengthened requirements here with its new focus-appearance criteria.
  • Modals and menus can be closed with the Escape key, and focus returns to a sensible location after closing.

Testing Tools and Methods

Effective accessibility testing combines automated scanning with manual review, since automated tools catch roughly a third of real accessibility issues — the rest require human judgment.

MethodWhat it catchesExample tools
Automated scannersContrast ratios, missing alt text, missing labels, ARIA misuseaxe DevTools, WAVE, Lighthouse accessibility audit
Screen reader testingReal navigation experience, announcement accuracyNVDA, JAWS, VoiceOver
Keyboard-only testingTab order, focus traps, unreachable elementsManual testing (unplug the mouse)
Manual/expert reviewContext, cognitive load, real-world usabilityAccessibility consultants, internal audits
User testingReal-world barriers automated tools missTesting with people who use assistive technology

Web accessibility has shifted from a best practice to a binding legal requirement in many major markets:

  • In the European Union, the European Accessibility Act (EAA) requires a broad range of digital products and services — including e-commerce, banking, and telecom — to meet accessibility requirements aligned with WCAG, with enforcement and penalties varying by member state.
  • In the United States, ADA Title II rules require state and local government websites to meet WCAG 2.1 Level AA (with WCAG 2.2 increasingly referenced going forward), and private businesses continue to face a high volume of ADA-related web accessibility lawsuits, most triggered by the same recurring failures — missing alt text, poor contrast, and keyboard inaccessibility.
  • Section 508 governs US federal agency websites and procurement.
  • Other jurisdictions, including Canada, the UK, and Australia, have their own accessibility legislation that references WCAG as the technical benchmark.

Accessibility overlay widgets — scripts marketed as an instant compliance fix — have consistently performed poorly in both usability testing and litigation outcomes, since they often fail to fix underlying structural issues and can even interfere with assistive technology.

Why It Matters

Beyond legal exposure, accessibility failures exclude a meaningful share of potential users and customers, and case after case shows that accessibility fixes — better contrast, clearer labels, logical structure — tend to improve usability for everyone, not just users of assistive technology. Search engines and AI answer systems also increasingly favor well-structured, semantic content, meaning accessibility work overlaps directly with SEO and AEO gains.

What Happens Next

Expect enforcement of the European Accessibility Act to intensify as more member states finalize penalty structures, and expect WCAG 2.2's newer criteria — particularly around focus visibility and target size — to become standard audit checkpoints. Automated testing is also improving through AI-assisted accessibility scanners, though manual and assistive-technology testing remains necessary to catch what automation misses.

Frequently Asked Questions

Is WCAG 2.2 legally required everywhere?

No single global law mandates WCAG 2.2 specifically, but many national and regional laws (EAA, ADA-related rulings, Section 508) reference WCAG as the technical standard for compliance, typically at Level AA.

What's the difference between WCAG 2.1 and 2.2?

WCAG 2.2 adds new success criteria on top of 2.1, focused on areas like focus appearance, minimum target size for interactive elements, and accessible authentication methods.

Do accessibility overlay tools make a site compliant?

Generally no — overlays often fail to fix underlying code-level issues and have been repeatedly cited as inadequate in accessibility lawsuits and expert audits.

How much does it cost to make a website accessible?

It varies widely by site size and existing code quality, but starting with semantic HTML from the outset is far cheaper than retrofitting accessibility onto an existing, poorly structured site.

Can automated tools alone confirm compliance?

No — automated scanners catch a meaningful but limited subset of issues; manual review and testing with actual assistive technology are necessary for genuine compliance confidence.

Conclusion

WCAG 2.2 compliance is best approached as an ongoing engineering discipline, not a one-time audit. Prioritizing semantic HTML, correct and minimal ARIA usage, full keyboard operability, and a mix of automated and manual testing addresses the overwhelming majority of real-world accessibility failures — while also reducing legal exposure as accessibility regulations continue to tighten globally.

Tags:#WCAG 2.2#web accessibility#ARIA#semantic HTML#keyboard navigation#European Accessibility Act#ADA compliance#accessibility testing

Wipidia Editorial Review Board

✓ Fact-Checked & Verified

This article was authored and reviewed by Wipidia's technical editorial desk in Jalandhar, Punjab. Every code snippet, algorithm breakdown, and strategic framework is independently tested against live production standards before publication.