Loading...
Loading content...
Loading content...
Last Updated: January 2025
A comprehensive, step-by-step guide to making your website accessible and WCAG 2.2 compliant. Follow these actionable steps to improve accessibility for all users.
<button>Click me</button>
<!-- Not: <div onclick="...">Click me</div> -->
<label for="email">Email</label>
<input type="email" id="email" name="email" />
<!-- Not: <input type="email" placeholder="Email" /> -->/* Add visible focus styles */
button:focus {
outline: 2px solid #0066cc;
outline-offset: 2px;
}
/* Ensure focusable elements are in tab order */
.skip-link {
position: absolute;
top: -40px;
left: 0;
}
.skip-link:focus {
top: 0;
}<label for="email">Email Address <span aria-label="required">*</span></label>
<input
type="email"
id="email"
name="email"
aria-required="true"
aria-describedby="email-error email-help"
/>
<span id="email-help">We'll never share your email</span>
<span id="email-error" role="alert" aria-live="polite"></span><button aria-label="Close dialog">
<span aria-hidden="true">×</span>
</button>
<div role="alert" aria-live="polite">
Form submitted successfully
</div>
<button aria-expanded="false" aria-controls="menu">
Menu
</button>