Introduction to
Digital Accessibility
San Francisco Digital Services
Table of Contents
What is digital accessibility?
What is Digital Accessibility?
Accessibility means removing barriers.
When digital products are correctly designed, developed, and edited, all users have equal access to information and functionality.
Why is accessibility important?
Why is Accessibility Important?
In the United States, there are over 56 million people with a disability.
Approximately 20% of the US population requires some form of assistive technology to browse online content. That could be:
Accessibility Standards and Guidelines
Web Content Accessibility Guidelines (WCAG)
Section 508 Standards
City Digital Accessibility and Inclusion Standards
Accessibility Standards and Guidelines
What types of users do you need to design for?
Accessibility User Groups
When designing your digital content it’s important to take the following user groups and disabilities into account.
Visual | Screen reader users, keyboard users, vision impairment, blindness, color blindness, speech to input users |
Physical | Keyboard only users, mobility impairment, speech to input users |
Auditory | Hearing impairment, deafness |
Cognitive | Learning disability, reading disorder, language barriers/English as a second language |
Considerations for Creating Accessible Content
What are some of the key considerations in order to make your digital content more accessible to people with disabilities?
Designing for Digital Accessibility
Avoid PDF Documents and Attachments
Avoid the use of PDF documents and attachments when creating digital content.
Create Accessible PDFs and Attachments
Color and Color Contrast - Body Text
Ensure that there is sufficient color contrast between text and background.
Color and Color Contrast - Link Text
Ensure that link text has sufficient color contrast with the background color as well as in relation to the body text.
Don’t Rely on Color Alone to Convey Information
Don’t Rely on Color Alone to Convey Info - Part 2
For example, use an asterisk in addition to color to indicate required form fields.
Don’t Rely on Color Alone to Convey Info - Part 3
Use labels to distinguish areas on graphs.
Ensure Interactive Elements are Easy to Identify
Ensure Interactive Elements are Easy to Identify
Provide Clear and Consistent Navigation
Provide Accessible Audio and Video Content
Any audio and video related content must be fully accessible to vision and hearing impaired users.
Provide Synchronized Captions
Provide hearing impaired users with synchronized captions for any pre-recorded videos with audio.
Provide a Text Transcript - Part One
Provide a text based transcript of audio only content for hearing impaired users.
Provide a text based transcript of video only content for vision impaired users.
Provide a Text Transcript - Part Two
Slideshows and Moving Content - Part 1
Avoid the use of slideshows and moving content as it is not fully accessible to keyboard only users and screen reader users.
Slideshows and Moving Content - Part 2
Create Designs That Are Responsive
Ensure that content, text size, line height, text spacing and navigation adapt to different screen sizes.
Create Accessible Data Tables - Part 1
Create Accessible Data Tables - Part 2
Writing for Digital Accessibility
Provide Alternative Description for Images
Provide Meaningful ALT Text for Images
Meaningful ALT Text:
<img src="sfhsa-logo.svg" alt="San Francisco Human Services Agency">
Non-meaningful ALT Text:
<img src="sfhsa-logo.svg" alt="Logo">
Use Headings to Convey Meaning and Structure
Create a Logical Reading Order
Proper Nesting of Headings
<h1>Page Title</h1>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
<h3>Heading Three</h3>
<h4>Heading Four</h4>
<h4>Heading Four</h4>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
<h3>Heading Three</h3>
<h4>Heading Four</h4>
Heading 1
Heading 2
Heading 3
Heading 3
Heading 4
Heading 4
Heading 2
Heading 3
Heading 3
Heading 4
Provide Descriptive Link Text - Part 1
Provide Descriptive Link Text - Part 2
Provide Help Text and Feedback
Provide Inline Error Messaging
For example, provide inline error messaging in connection with forms.
This allows screen reader users to correct errors immediately while they are completing the form.
Provide Descriptive iFrame Titles
Keep Content Clear and Concise
Language Access
Provide human translation of vital information in the languages defined by the city’s Language Access Ordinance.
Developing for Digital Accessibility
Create Programmatically Accessible Content
Explicitly Associate Form Instructions and Labels with Their Respective Form Control
Explicitly Associate Form Instructions and Labels with Their Respective Form Control
<label for=”name” >Your name</label>
<div id=”namehelptext”>
You must be the business owner or the authorized representative of a nonprofit.
</div>
<input id="name" aria-describedby=”namehelptext” type="text" required>
Ability to Skip Repetitive Navigation
Provide screen reader and keyboard only users with the ability to skip repetitive navigation menu links and go straight to the main content area.
Incorporate Landmarks and Landmark Roles
<header role="banner">
<p>Put company logo, etc. here.</p>
<nav role="navigation">
<ul>
<li>Put primary/global navigation here</li>
</ul>
</nav>
</header>
<main role="main">
<p>Put main content here.</p>
</main>
<footer role="contentinfo">
<p>Put copyright, and footer related content here.</p>
</footer>
Specify The Default Human Language
Example:
<html lang="en">
Tagging and Nesting of Headings
<h1>Page Title</h1>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
<h3>Heading Three</h3>
<h4>Heading Four</h4>
<h4>Heading Four</h4>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
<h3>Heading Three</h3>
<h4>Heading Four</h4>
Headings need to be properly tagged and nested in the markup in order to create a logical reading order for screen reader users.
Testing for Digital Accessibility
Types of Accessibility Tests
Automated Testing
Manual Testing
axeMonitor - Automated Testing
axeMonitor is an automated testing tool by Deque.
IMPORTANT:
Increase Your Accessibility Validation Coverage
New Automated Accessibility Testing Platform
Playwright Accessibility Testing Platform Goals
The goals with this platform are to:
Playwright Accessibility Testing Toolkit
Integrate Playwright Testing to other Platforms
It would be great if we would also integrate the Playwright accessibility testing framework to:
Keyboard Testing
Screen Reader Testing
Mobile Testing with Mobile Screen Reader
Color Contrast Checker
WebAIM provides a free color contrast checker that validates compliance with WCAG Level AA standards.
Adobe Acrobat Pro - Testing PDF Documents
Adobe Acrobat Pro allows you to test PDF documents for accessibility compliance.
Hemingway App
Hemingway is an online tool that will test the reading level of your content.
Wave by WebAIM
Wave is a free, online accessibility evaluation tool.
Accessibility Resources and Guides
Accessibility Resources and Guides