Website Accessibility Tips

1. Structure the DOM in a sensible way so that keyboard tab navigation is sequential.
2. Use HTML semantic elements like nav, header, section
3. Make sure parts of controls are grouped together
4. Use CSS for layout instead of tables
5. Use native HTML tags instead of divs and spans eg: a, button tags instead of div span with onclick coz divs and spans are not focusable.
6. Label form elements using 'label for'
7. Label images with alt attributes
8. Managing focus using element.focus() whenever required
9. For generic tags div and span, use Aria roles like role=button, role=menuitem so that screen readers can identify elements.
10. Aria landmark roles can be used to identify separate areas of the app. eg; <section role="search"/>
11. Use aria states to add dynamic information about the current state of an element
eg: <div tabindex="0" role="checkbox" aria-checked="true">
12. The property aria-live identifies dynamic content on a page. It is added to elements that will be updated and describes the types of updates the element receives.

Chromevox: chrome plugin to simulate screen reader.

Comments

Popular posts from this blog

Responsive Web Design

CSS Flexbox model