Web Accessibility Basics
Web accessibility means building websites that everyone can use, including people with disabilities.
Why accessibility matters
- It is the right thing to do.
- It is often required by law.
- It improves usability for all users.
Semantic HTML
Use proper HTML elements so assistive technologies can understand your page:
<form aria-label="Contact form">
<label for="email">Email</label>
<input id="email" type="email" />
</form>
## Color contrast
Use sufficient contrast between text and background so content is readable.
```css
body {
color: #111827;
background: #ffffff;
}