---
name: accessibility
description: Web accessibility (a11y) best practices for WCAG 2.1 AA compliance, ARIA attributes, keyboard navigation, screen reader support, and inclusive design. Use when auditing accessibility, implementing accessible features, fixing a11y issues, or when user mentions WCAG, accessibility, screen readers, or keyboard navigation.
---
# Web Accessibility (A11Y)
WCAG 2.1 AA compliance guidelines and implementation patterns.
## WCAG Principles (POUR)
1. **Perceivable** - Information must be presentable in ways users can perceive
2. **Operable** - Interface must be operable by all users
3. **Understandable** - Information and operation must be understandable
4. **Robust** - Content must be robust enough for assistive technologies
## Semantic HTML
### Use Correct Elements
```html
Home
```
### Headings Hierarchy
```html
Page Title
Section
Page Title
Section
Subsection
```
### Landmark Regions
```html
...
```
## Images & Media
### Alternative Text
```html
Figure 1: The system consists of a web server,
application server, and database server.
```
### Video & Audio
```html
```
## Forms
### Labels
```html
```
### Error Messages
```html