Completing an Accessibility Audit
San Francisco Digital Services
What We Will Review
Test and Complete an Accessibility Audit
The only way to know if your website is compliant with the city's Digital Accessibility and Inclusion Standards is to test it and complete an accessibility audit.
Types of Accessibility Tests
Types of Accessibility Tests
Automated Testing
Document Issues
Manual Testing
Manual Screen Reader Testing
Manual Keyboard Only Testing
Manual Mobile Testing
Time Required for Testing
Demo of Accessibility Guidelines
Provide Alternative Description (ALT Text) for Images
Overview
Guideline Expectations
Non-Decorative Images
The text and icon is one image.
Decorative Images
How to Comply - Non-Decorative Images
Meaningful and compliant ALT text:
<img src="sfhsa-logo.svg" alt="San Francisco Human Services Agency">
Non-meaningful and non-compliant ALT text:
<img src="sfhsa-logo.svg" alt="Logo">
How to Comply - Decorative Images
Compliant ALT text:
<img src="icon.png" alt="" width="304" height="50">
Non-compliant ALT text:
<img src="icon.png" alt="icon" width="304" height="50">
Automated Testing of ALT Text Guideline
Review Automated Test of ALT Text Guideline
Review the automated report and identify if it flagged images without alt text. Example of automated report.
If there is no ALT text present you need to identify:
b) If it's a decorative image that has no meaning.
Manual Testing of ALT Text Guideline
Review images that already have ALT text present to identify:
b) If it's a decorative image that has no meaning.
Review existing ALT text using this tool.
Skip Repetitive Navigation
Overview
.
Guideline Expectations
Type of Test
How to Test
If keyboard only test is successful, screen reader users will also be able to access “skip to main content” link.
How to Comply
<a href="#maincontent Class="skip-link visually-hidden visually-hidden-focusable">Skip to main content</A>
<main id="maincontent" role="main">
<h1>Heading</h1>
<p>This is the first paragraph</p>
</main>
Provide Keyboard Focus Indicator
Overview
.
Guideline Expectations
.
Type of Test
How to Test
How to Comply
Example on How to Comply in the Code
HTML Code:
<button>Example button</button>
css Code:
button {
background-color: #236AB8; /* medium-dark blue */
color: white;
}
main button:focus {
outline: 3px #fff5be solid; /* yellow */
outline-offset: -4px;
}
Guides and Resources
Guides on How to Test and Comply