Please enable JavaScript.
Coggle requires JavaScript to display documents.
Accessibility - Coggle Diagram
Accessibility
HTML
Semantic HTML
Provides accessibility, SEO, and performance benefits
-
-
-
-
Interactive elements
Buttons, links, and form controls
-
-
-
-
-
Images
-
Best practices
-
Extra contextual information can be placed in surrounding text or in the title
attribute of <img>
element
-
Decorative images
-
Set role="presentation"
attribute on the <img>
element or provide an alt
attribute with an empty string
Links
-
-
Links that open new tabs or windows or download content should specify that information in the link text
-
Overview
-
Disabilities
-
-
Mobility impairments
-
-
Physical conditions, trauma, or old age
Cognitive impairments
-
Intellectual disabilities, learning disabilities, mental illnesses, and old age
-
Accessibility APIs
-
Browsers make use of accessibility APIs provided by the operating system for assistive technologies (AT)
-
WAI-ARIA
Use cases
-
Signposts and landmarks
-
-
Roles can also be defensively set on semantic elements for older or unsupported browsers such as IE8
aria-label
can be used on elements such as search inputs that aren't labeled due to stylistic reasons
-
Complex UI-features
Validations and errors
-
-
-
Set the placeholder
attribute instead of aria-valuemin
and aria-valuemax
which aren't well supported
-
Set aria-disabled
with along with a live region message to announce changes to form control disabled states
-
-
Overview
-
-
Support for features depends on the operating system, browser, and assistive software combination
-
CSS
-
Styling
Elements should not be styled to look like other elements or to look too different from their default styles
-
-
-
-
Mobile
Concerns
-
Reducing user input
-
Prefer HTML5 form inputs (date, time, tel) as they are well-supported on mobile platforms
-
-