Pillars/ Principles of Accessibility(WCAG-Web Content Accessibility Guidelines)
Perceivable
Means to become aware of, know or identify by means of the senses
Text Alternatives
Non-text content
People with certain disabilities will not be able to perceive the information conveyed through non-text content unless an alternate way is provided to convey the same.(to serve the equivalent purpose)
Ex: Images, charts, Audio, Video, Graphs,
Add alt text for images, charts, graphs, diagrams
Provide alt text, captions, transcript for audio and video
Audio version for CAPTCHAs
Remove alt text for decorative images
Controls, input
form control accepts user input (input, textarea, select, progress, meter, output)
should’ve a name that describes it’s purpose
(label) for-(input) id association
encapsulate form control with label
aria-labelledby
aria-label
title
<button id="search" aria-label="Search"></button>
(OR)
The text already exist elsewhere in the document. So, using aria-labelledby. Otherwise, should use aria-label as above
<h2 id="searchLabel">Search</h2>
<label for="search">Enter search term
<input type="search" id="search">
</label>
<button aria-labelledby="searchLabel"></button>
Time-based media
Test
Sensory
CAPTCHA
Decoration, formatting, invisible
form control accepts user input (input, textarea, select, progress, meter, output)
should’ve a name that describes it’s purpose
(label) for-(input) id association
encapsulate form control with label
aria-labelledby
aria-label
title
<button id="search" aria-label="Search"></button>
(OR)
The text already exist elsewhere in the document. So, using aria-labelledby. Otherwise, should use aria-label as above
<h2 id="searchLabel">Search</h2>
<label for="search">Enter search term
<input type="search" id="search">
</label>
<button aria-labelledby="searchLabel"></button>
Time based media
Adaptable
Distinguishable
Operable
Understandable
Robust
No comments:
Post a Comment