Accessibility- Navigating Content
Source: Accesibility - Udacity Front End Web Development Nanodegree
- a. Headings
- b. Links
- c. Form Controls
- d. Landmarks
- Screen Reader can make you navigate through headings, links, form controls, and landmarks.
###Screen Reader Shortcuts (OS X)
CMD+F5
: turn on VoiceOverTAB, Shift+TAB, arrow keys
(keyboard operation): work with VoiceOver runningCMD+L
: jump to address barCTRL+Option+U
: open Web Rotor / Type search term with Web Rotor open to search within Web RotorCTRL + Option + ← ↑ ↓ →
: explore contentCTRL + Option + CMD + H
: move forward by headingCTRL + Option + CMD + Shift + H
: move backward by heading
- Web AIM VoiceOver-full VoiceOverintroduction, including most keyboard commands available.
- Screen Reader Shortcuts (Windows) NVDA-open source screen reader for Windows.
- Web AIM Introduction to NVDA- the basics of using NVDA to check accessibility. _ Screen Reader Shortcuts (Linux) Orca-Gnome desktop-manager for Linux.
- Use meaningful headings and links names.
- Use a good heading structure from
<h1>...<h6>
(for long complex content). - in DEV TOOL: Look through the HTML of a page and identify each heading's number:
<h#>
JavaScript headings snippet:
var hs = document.querySelectorAll('h1,h2,h3,h4,h5,h6');
for (var i = 0; i < hs.length; i++) {
console.log(hs[i].textContent.trim() + " " +
hs[i].tagName,
hs[i]);
}
-Besides Headers
, also take into account Screen Readers
and VoiceControl
.
- Other navigational options are:
links
,form controls
andlandmarks
.
- Use descriptive link text
Example: instead of using "learn more" links text use
:learn more about bla bla".
- Most of the time, a link just needs to be a link! 2.4.9
- Navigate by landmarks:
<header>
<nav>
<main>
<section>
<article>
<aside>
<footer>
- Using the proper semantic elements helps assistive technology understand how elements relate to one another.
- Make sure to use meaningful headers, link text and page structure.
- Do not try to control the experience of a screen reader user. It will need to more confusion and less positive user experience. Besides, they will use the available information and their tools.