Alternative text for images, scalable text, sufficient contrast, keyboard navigation, and other interface changes can make a website more accessible. Start by checking the site’s accessibility, then remove the barriers that prevent people from perceiving and interacting with its content.
What is web accessibility?
According to the World Wide Web Consortium (W3C), web accessibility means designing and developing websites, tools, and technologies so that people with disabilities can use them. Users should be able to perceive and understand content, navigate and interact with the site, and contribute to it.
Accessibility encompasses hearing, visual, speech, physical, cognitive, and neurological disabilities. According to CDC data cited in a 2020 article, 25% of adults in the US were living with a disability.
The legal context in the US
The 2020 article noted that Titles II and III of the Americans with Disabilities Act (ADA) were particularly relevant to web accessibility. Title II addresses equal access to the programs, services, and activities of state and local governments and public entities that receive federal funding. Title III prohibits disability discrimination in public accommodations, such as restaurants, hotels, movie theaters, museums, and hospitals.
The author of the original article noted that the ADA did not provide a clear-cut answer on web accessibility, although websites and apps are often considered part of a company’s operations. In 2019, 2,256 website accessibility lawsuits were filed in US federal courts under the ADA. This information reflects the context of the original publication and does not describe current requirements.
1. Add alternative text to images
Images can pose a barrier to blind and low-vision users who use screen readers or refreshable Braille displays. Alternative text conveys the content of an image in text form.
Describe the image as clearly as possible. You can use the alt attribute for a brief description; the original article also mentioned longdesc for longer descriptions.
2. Allow text to be enlarged
Small text makes reading difficult for people with low vision. Allow users to enlarge text without disrupting the page layout, for example by using an alternative stylesheet.
Pay attention to call-to-action buttons as well: their text should be large enough, and the buttons themselves should be easy to see.
3. Ensure sufficient contrast
When designing pages, consider not only text size but also the difference between text and background colors. Reduced contrast sensitivity can be associated with conditions such as glaucoma, cataracts, diabetic retinopathy, and retinitis pigmentosa.
The original article gave black text on a white or yellow background and yellow text on a blue background as examples of contrasting combinations. It recommended avoiding green and red text-and-background combinations. Don’t use overly thin fonts or JavaScript or CSS features that prevent users from increasing contrast. This also applies to call-to-action buttons.
4. Add keyboard navigation
Interactive elements should be accessible without a mouse. Check whether links, dropdown menus, widgets, forms, buttons, and dialog boxes can be used with a keyboard.
JavaScript widgets should also support keyboard controls. Another approach is to use HTML links, buttons, and form fields for the corresponding actions.
5. Make video and multimedia accessible
For blind and low-vision users, audio descriptions can convey visual information that would otherwise be inaccessible, such as gestures, images, or changes in setting. When adding them, choose meaningful details without overwhelming the viewing experience with excessive descriptions.
Provide captions synchronized with video and audio for deaf and hard-of-hearing users. Make sure the captions have sufficient contrast and the multimedia player is easy to use. The original article noted that HTML5 players offer more options for implementing accessibility.
6. Use clear links
Descriptive URLs and link text help screen reader users understand where a link leads and navigate to the content they need. For example, the URL of an about page could contain a more detailed description than just the word about.
Instead of generic phrases like “Learn more” or “Click here,” use text that explains the link’s purpose. Don’t add links to images for which alternative text cannot be provided.
7. Use ARIA roles and attributes
ARIA—Accessible Rich Internet Applications—helps make dynamic content more accessible. Roles and attributes provide screen readers and other assistive technologies with additional information about page elements.
The categories listed in the original article include navigation landmarks, document structure, widgets, abstract roles, windows, and regions with dynamic content. The latter help assistive technologies detect changes on a page and announce them to the user.
ARIA changes should be entrusted to specialists who have access to the source code and knowledge of ARIA and HTML5. Contact the website developer for details.
8. Don’t replace field labels with placeholder text
Placeholder text inside a form field is often displayed in gray and can be difficult to read because of low contrast. It is not a substitute for a field label and may be missed by a screen reader.
Use a persistent label with a label element or an ARIA attribute, and ensure sufficient contrast between the text and background. Keep the form simple and uncluttered.
9. Use tables judiciously
Screen readers announce a table’s rows and columns, but the order in which data is read can be difficult to follow. Where possible, the original article recommends using CSS to present data.
If a table is necessary, provide appropriate row and column headers. An HTML5 table caption can provide additional context.
Source: https://www.searchenginejournal.com/make-website-more-accessible/347450/
Discussion
Sign in or create an account, to join the discussion.