Introduction to Alt Text and Accessibility
Digital Accessibility Community of Practice
https://matthewdeeprose.github.io/altext.html
1
08/11/2021
Much more material available in the slide deck.
Let’s start with some polls
https://matthewdeeprose.github.io/altext.html
2
08/11/2021
What is alt text?
https://matthewdeeprose.github.io/altext.html
3
08/11/2021
What is alt text? (2)
https://matthewdeeprose.github.io/altext.html
4
08/11/2021
What is alt text? (3)
https://matthewdeeprose.github.io/altext.html
5
08/11/2021
What is alt text used for? (1)
There are three main uses:
https://matthewdeeprose.github.io/altext.html
6
08/11/2021
What is alt text used for? (2)
There are three main uses:
https://matthewdeeprose.github.io/altext.html
7
08/11/2021
Example where images are not shown
https://matthewdeeprose.github.io/altext.html
8
08/11/2021
Chrome browser
Lynx browser
What is alt text used for? (3)
There are three main uses:
https://matthewdeeprose.github.io/altext.html
9
08/11/2021
What recommendations are there?
https://matthewdeeprose.github.io/altext.html
10
08/11/2021
The Web Content Accessibility Guidelines require text alternatives for any non-text content so that it can be changed into other forms people need, such as large print, braille, speech, symbols or simpler language.
Success Criterion 1.1.1 (1)
(Level A)
All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for...
https://matthewdeeprose.github.io/altext.html
11
08/11/2021
Success Criterion 1.1.1 (but) (1)
For all of these, accessible alternatives are still required.
The following hidden slides have more information.
https://matthewdeeprose.github.io/altext.html
12
08/11/2021
Success Criterion 1.1.1
(Level A)
All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for...
Controls, Input
If non-text content is a control or accepts user input, then it has a name that describes its purpose. (Refer to Success Criterion 4.1.2 for additional requirements for controls and content that accepts user input.)
https://matthewdeeprose.github.io/altext.html
13
08/11/2021
Success Criterion 1.1.1 Controls, Input�
If non-text content is a control or accepts user input, then it has a name that describes its purpose.
https://matthewdeeprose.github.io/altext.html
14
08/11/2021
More developer resources at the end of the slide deck
https://matthewdeeprose.github.io/altext.html
15
08/11/2021
Success Criterion 1.1.1: Time-Based Media
(Level A)
All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for...
Time-Based Media
If non-text content is time-based media, then text alternatives at least provide descriptive identification of the non-text content. (Refer to Guideline 1.2 for additional requirements for media.)
https://matthewdeeprose.github.io/altext.html
16
08/11/2021
Success Criterion 1.1.1 - Tests
(Level A)
All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for...
Test
If non-text content is a test or exercise that would be invalid if presented in text, then text alternatives at least provide descriptive identification of the non-text content.
https://matthewdeeprose.github.io/altext.html
17
08/11/2021
Success Criterion 1.1.1 - Sensory Content
(Level A)
All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for...
Sensory
If non-text content is primarily intended to create a specific sensory experience, then text alternatives at least provide descriptive identification of the non-text content.
https://matthewdeeprose.github.io/altext.html
18
08/11/2021
Success Criterion 1.1.1 - Captcha
(Level A)
All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for...
Captcha�…text alternatives that identify and describe the purpose of the non-text content are provided, and alternative forms of CAPTCHA using output modes for different types of sensory perception are provided …
https://matthewdeeprose.github.io/altext.html
19
08/11/2021
Success Criterion 1.1.1 - Decoration, Formatting, Invisible
(Level A)
All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for...
Decoration, Formatting, Invisible�If non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it is implemented in a way that it can be ignored by assistive technology.
https://matthewdeeprose.github.io/altext.html
20
08/11/2021
Can I avoid using alt text? (1)
https://matthewdeeprose.github.io/altext.html
21
08/11/2021
In Office tick
“mark as decorative”
In HTML use alt=""
You still have to do “something”.
Can I avoid using alt text? (2)
https://matthewdeeprose.github.io/altext.html
22
08/11/2021
Can I avoid using alt text?
https://matthewdeeprose.github.io/altext.html
23
08/11/2021
Writing alt text
https://matthewdeeprose.github.io/altext.html
24
08/11/2021
It’s not easy, nor “black and white”
https://matthewdeeprose.github.io/altext.html
25
08/11/2021
No alt text
Has alt text
Appropriate alt text
Levels of alt text
https://matthewdeeprose.github.io/altext.html
26
08/11/2021
No alt text.
Has alt text / marked as decorative.
Appropriate alt text.
Writing alternative text - strategies
"If I could not use an image, what text would I put in its place?"
“If I were describing the image over the phone to someone, what would I say?”
https://matthewdeeprose.github.io/altext.html
27
08/11/2021
Writing alternative text, another analogy (2)
https://matthewdeeprose.github.io/altext.html
28
08/11/2021
‘Knightmare’ tv-series.
‘Zork’ text adventure game (1980)
Writing alternative text, another tip (2)
https://matthewdeeprose.github.io/altext.html
29
08/11/2021
Imagine bringing up the image in conversation: what details should be mentioned so that someone who isn’t looking at the image can still understand it?
A note on Breakout activities
https://matthewdeeprose.github.io/altext.html
30
08/11/2021
A note on Breakout activities (2)
https://matthewdeeprose.github.io/altext.html
31
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
A note on Breakout activities (3)
https://matthewdeeprose.github.io/altext.html
32
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
A note on Breakout activities (5)
https://matthewdeeprose.github.io/altext.html
33
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
What’s the difference between captions and alternative text?
https://matthewdeeprose.github.io/altext.html
34
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
What’s the difference between captions and alternative text?
https://matthewdeeprose.github.io/altext.html
35
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
Break out activity 1
https://matthewdeeprose.github.io/altext.html
36
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
What’s the difference between a caption and alt text? (2) (1/2) (1/2)
https://matthewdeeprose.github.io/altext.html
37
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
What’s the difference between a caption and alt text? (3) (1/2)
https://matthewdeeprose.github.io/altext.html
38
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
What’s the difference between a caption and alt text? (1) (1/2)
https://matthewdeeprose.github.io/altext.html
39
08/11/2021
What’s the difference between a caption and alt text? (1)
“Graph with months of the year along the X axis and figures from 16.0 to 19.0 in increments of 0.5 along the y axis. The line starts from just above 16.0 in January to almost 19.0 in December. The line is particularly steep between June and October.”
https://matthewdeeprose.github.io/altext.html
40
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
What’s the difference between a caption and alt text? (2)
“Graph with months of the year along the X axis and figures from 16.0 to 19.0 in increments of 0.5 along the y axis. The line starts from just above 16.0 in January to almost 19.0 in December. The line is particularly steep between June and October.”
https://matthewdeeprose.github.io/altext.html
41
08/11/2021
How much can I include in alt text?
https://matthewdeeprose.github.io/altext.html
42
08/11/2021
How much can I include in alt text? (2)
https://matthewdeeprose.github.io/altext.html
43
08/11/2021
SEO = Search Engine Optimisation
How much can I include in alt text? (3)
https://matthewdeeprose.github.io/altext.html
44
08/11/2021
Why is context important? Abigale Stangl, Ph.D
“…people who are blind or have low vision want image descriptions that are responsive to where they encounter the image…
…In other words, people want different content for the same image depending on where they find it.”
https://matthewdeeprose.github.io/altext.html
45
08/11/2021
A Context Example(1) (1)
https://matthewdeeprose.github.io/altext.html
46
08/11/2021
Imagine how the alt text of this image would vary based on the following contexts.
A Context Example(2)(1)
https://matthewdeeprose.github.io/altext.html
47
08/11/2021
In an article about business news.
A Context Example((13 1)
https://matthewdeeprose.github.io/altext.html
48
08/11/2021
In a dating profile.
A Context Example((14 1)
https://matthewdeeprose.github.io/altext.html
49
08/11/2021
In a post about the new chair of an equality forum.
Breakout exercise 2
https://matthewdeeprose.github.io/altext.html
50
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
Context Example (2)
https://matthewdeeprose.github.io/altext.html
51
08/11/2021
An article about Building 32.
Group 1 Start Here
Breakout slides: https://go.soton.ac.uk/dkd
Context Example (3)
https://matthewdeeprose.github.io/altext.html
52
08/11/2021
An article about changes to the operation of traffic lights on campus.
Group 2 Start Here
Breakout slides: https://go.soton.ac.uk/dkd
Context Example (4)
https://matthewdeeprose.github.io/altext.html
53
08/11/2021
An article the dangers of crossing the street when it may not be safe to do so.
Group 3 Start Here
Breakout slides: https://go.soton.ac.uk/dkd
Context Example 5 (4)
https://matthewdeeprose.github.io/altext.html
54
08/11/2021
An article the benefits of tree-lined avenues.
Group 4 Start Here
Breakout slides: https://go.soton.ac.uk/dkd
The importance of emotion
https://matthewdeeprose.github.io/altext.html
55
08/11/2021
A good alt text can conjure up wonderfully stimulating mental images. A friendly smile is the same in print, photo or wax crayon. Whether you listen to an image or see it, the emotional response is the key factor.
Leonie Watson, W3C Advisory Board
But…
“activating your emotion centre isn't suitable for all types of content. Examples … are academic articles, educational materials, or content which requires intense system II thinking (analyses, coding, facts)…”
@shexec32
https://matthewdeeprose.github.io/altext.html
56
08/11/2021
Worked example
https://matthewdeeprose.github.io/altext.html
57
08/11/2021
Worked Example (2)
https://matthewdeeprose.github.io/altext.html
58
08/11/2021
Worked Example (3)(3)
https://matthewdeeprose.github.io/altext.html
59
08/11/2021
Worked Example (4)
https://matthewdeeprose.github.io/altext.html
60
08/11/2021
Worked Example (5)
https://matthewdeeprose.github.io/altext.html
61
08/11/2021
Worked Example 75)
https://matthewdeeprose.github.io/altext.html
62
08/11/2021
Worked Example (6)
https://matthewdeeprose.github.io/altext.html
63
08/11/2021
Worked Example (7)
https://matthewdeeprose.github.io/altext.html
64
08/11/2021
Using emotions
Watch Writing Good Alt Text - HTTP 203 for more.
https://matthewdeeprose.github.io/altext.html
65
08/11/2021
Why is context important? (1)
https://matthewdeeprose.github.io/altext.html
66
08/11/2021
“Person, Shoes, Tree. Is the Person Naked?” What People with Vision Impairments Want in Image Descriptions.�
https://matthewdeeprose.github.io/altext.html
67
08/11/2021
Tips for writing good alt text
https://matthewdeeprose.github.io/altext.html
68
08/11/2021
Personal experiences – Sassy Wyatt (1)
“If you were to close your eyes, or… become visually impaired or blind, and someone was describing a picture to you: it’s likely that you would want as much description as you could possibly ask for… it may take you… longer to write the alt text descriptions… but… it makes such a difference to… people like me who are visually impaired and use screen readers.”
https://matthewdeeprose.github.io/altext.html
69
08/11/2021
Personal experiences – Sassy Wyatt (2)
“Sitting at a wooden bench style table, Sassy and Grant both smile towards the camera. In between them, with Grant’s arm around her, Ida has her front paws up on the bench, with her nose straining towards the top of the table. In the background, through the clear plastic of the gazebo style covering, the blue water of the River Dart is visible, with small boats upon it.”
https://matthewdeeprose.github.io/altext.html
70
08/11/2021
Further strategies to consider?
https://matthewdeeprose.github.io/altext.html
71
08/11/2021
Breakout 3
https://matthewdeeprose.github.io/altext.html
72
08/11/2021
Breakout slides: https://go.soton.ac.uk/dkd
https://matthewdeeprose.github.io/altext.html
73
08/11/2021
Context:
The introduction of a new bus route for unilink.
https://matthewdeeprose.github.io/altext.html
74
08/11/2021
Context:
The importance of companionship.
https://matthewdeeprose.github.io/altext.html
75
08/11/2021
Context:
Going back to school during a pandemic.
https://matthewdeeprose.github.io/altext.html
76
08/11/2021
Context:
Using video game style maps for real world locations.
https://matthewdeeprose.github.io/altext.html
77
08/11/2021
Context:
Data visualisation.
https://matthewdeeprose.github.io/altext.html
78
08/11/2021
Context:
The effects of urban living on human behaviour.
https://matthewdeeprose.github.io/altext.html
79
08/11/2021
Context:
An article about the history of University education in Europe.
https://matthewdeeprose.github.io/altext.html
80
08/11/2021
Context:
Continuous improvement.
https://matthewdeeprose.github.io/altext.html
81
08/11/2021
Context:
How “home comforts” have changed in the West over the last fifty years.
https://matthewdeeprose.github.io/altext.html
82
08/11/2021
Context:
Past visions of the future of education.
https://matthewdeeprose.github.io/altext.html
83
08/11/2021
Context:
The importance of critical thinking.
https://matthewdeeprose.github.io/altext.html
84
08/11/2021
Context:
Staying warm in winter.
https://matthewdeeprose.github.io/altext.html
85
08/11/2021
Context:
Complexity in modern society.
https://matthewdeeprose.github.io/altext.html
86
08/11/2021
Context:
Customer feedback.
https://matthewdeeprose.github.io/altext.html
87
08/11/2021
Context:
Spring in the city.
https://matthewdeeprose.github.io/altext.html
88
08/11/2021
Context:
Christmas celebrations at the University of Southampton
https://matthewdeeprose.github.io/altext.html
89
08/11/2021
Context:
A graphic used in a newsletter created in Sway.
https://matthewdeeprose.github.io/altext.html
90
08/11/2021
Context:
Online shopping page for University of Southampton clothing.
https://matthewdeeprose.github.io/altext.html
91
08/11/2021
Context:
Making time for yourself.
https://matthewdeeprose.github.io/altext.html
92
08/11/2021
Context:
Computer workstations on campus.
https://matthewdeeprose.github.io/altext.html
93
08/11/2021
Context:
Disaster recovery planning.
https://matthewdeeprose.github.io/altext.html
94
08/11/2021
Context:
Political dissent.
Reflections
https://matthewdeeprose.github.io/altext.html
95
08/11/2021
Checking for Alt text on our web pages
Tota11y
Bookmarklet that adds a number of Accessibility Testing Tools.
https://matthewdeeprose.github.io/altext.html
96
08/11/2021
Checking for Alt text on our web pages (2)
Accessibility Insights
https://matthewdeeprose.github.io/altext.html
97
08/11/2021
MS Office Accessibility checker
https://matthewdeeprose.github.io/altext.html
98
08/11/2021
MS Office Accessibility checker (2)
https://matthewdeeprose.github.io/altext.html
99
08/11/2021
MS Office Accessibility checker (3)
https://matthewdeeprose.github.io/altext.html
100
08/11/2021
Alt text for Charts
https://matthewdeeprose.github.io/altext.html
101
08/11/2021
Alt text for Documentation Screen Captures
https://matthewdeeprose.github.io/altext.html
102
08/11/2021
Documentation / Screen Captures – bad practice
Alt=“Blackboard Discussion Board options”
Text:
Tick the boxes as shown here.
https://matthewdeeprose.github.io/altext.html
103
08/11/2021
Documentation / Screen Captures – good practice
Alt=“Blackboard Discussion Board options”
Text:
https://matthewdeeprose.github.io/altext.html
104
08/11/2021
Alt text for Flowcharts/Concept Maps
https://matthewdeeprose.github.io/altext.html
105
08/11/2021
Alt text for Maps
https://matthewdeeprose.github.io/altext.html
106
08/11/2021
Alt text for Math Equations
https://matthewdeeprose.github.io/altext.html
107
08/11/2021
Example of TeX in Blackboard
https://matthewdeeprose.github.io/altext.html
108
08/11/2021
Alternative text
“cube root of 8 equals 8 to the power of 1 third end exponent equals 2”
Alt text for Long Descriptions
https://matthewdeeprose.github.io/altext.html
109
08/11/2021
Alt text for memes
“I prefer to have only enough information to get the joke. I don’t need a ton of unnecessary information irrelevant to the purpose of the meme. If it’s a famous person, I like for that to be included too. Same goes for if it’s a meme of a famous cartoon character.
If the person’s body language/facial expression contributes to the overall humor of the joke, that could be important to include as well.” *
More reading
https://matthewdeeprose.github.io/altext.html
110
08/11/2021
Worked example – memes
Toddler clenching fist in front of smug face. Overlaid text on top: Was a bad boy all year. Overlaid text on bottom: Still got awesome presents from Santa.
[“Success kid” meme]
https://matthewdeeprose.github.io/altext.html
111
08/11/2021
Use in Office
https://matthewdeeprose.github.io/altext.html
112
08/11/2021
Use in Wordpress
Once an image has been added to the page, it is ‘disconnected’ from the media library. This means that when you change the alt text on either one, it won’t be updated on the other.
https://matthewdeeprose.github.io/altext.html
113
08/11/2021
Use in SharePoint
https://matthewdeeprose.github.io/altext.html
114
08/11/2021
Anything else to be aware of? (1)
https://matthewdeeprose.github.io/altext.html
115
08/11/2021
Anything else to be aware of? (3)
https://matthewdeeprose.github.io/altext.html
116
08/11/2021
Decision trees
https://matthewdeeprose.github.io/altext.html
117
08/11/2021
Practicing online
https://matthewdeeprose.github.io/altext.html
118
08/11/2021
Conclusion
https://matthewdeeprose.github.io/altext.html
119
08/11/2021
Web Content Accessibility Guidelines relating to alt text
https://matthewdeeprose.github.io/altext.html
120
08/11/2021
Further sources of information
https://matthewdeeprose.github.io/altext.html
121
08/11/2021
Developers corner
https://matthewdeeprose.github.io/altext.html
122
08/11/2021
Where can alternative text be used in HTML? 1)
https://matthewdeeprose.github.io/altext.html
123
08/11/2021
See https://www.w3schools.com/tags/att_alt.asp and https://en.wikipedia.org/wiki/Alt_attribute for more information
Where can alternative text be used in HTML? 2)
https://matthewdeeprose.github.io/altext.html
124
08/11/2021
See https://www.w3schools.com/tags/att_alt.asp and https://en.wikipedia.org/wiki/Alt_attribute for more information
Where can alternative text be used in HTML? (3)
https://matthewdeeprose.github.io/altext.html
125
08/11/2021
See https://www.w3schools.com/tags/att_alt.asp and https://en.wikipedia.org/wiki/Alt_attribute for more information
Area tags example
https://matthewdeeprose.github.io/altext.html
126
08/11/2021
<h1>The map and area elements</h1>
<p>Click on the computer, the phone, or the cup of coffee to go to a new page and read more about the topic:</p>
<img src="workplace.jpg" alt="Workplace" usemap="#workmap" width="400" height="379">
<map name="workmap">
<area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
<area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
<area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>
Example from https://www.w3schools.com/tags/att_alt.asp
Figcaption
https://matthewdeeprose.github.io/altext.html
127
08/11/2021
Recommended Figcaption pattern
<figure aria-label="Figcaption content here.">
<!-- figure content -->
<figcaption>
Figcaption content here.
</figcaption>
</figure>
https://matthewdeeprose.github.io/altext.html
128
08/11/2021
Figcaption pattern: worked example
https://matthewdeeprose.github.io/altext.html
129
08/11/2021
<figure aria-label="The University of Southampton campus looks particularly wonderful in the spring and summer. Photo Credit: Sofia Bazzini">
<img src="campus-15.jpg" alt="A Bright sunny day. In the foreground are flowers with white petals and yellow stamens. Surrounded by trees, the Hartley Library, a large red brick multi-storey structure, is in the background. A few people can be seen in the background on the right. On the left numerous parked bicyles.">
<figcaption>The University of Southampton campus looks particularly wonderful in the spring and summer.
<br />Photo Credit: <a href="http://www.sofiabazzini.com/about/">Sofia Bazzini</a>.</figcaption>
</figure>
Figcaption pattern: worked example (2)
https://matthewdeeprose.github.io/altext.html
130
08/11/2021
Longdesc (1)
More information at https://www.d.umn.edu/itss/training/online/images/long_how/
Video example at https://www.youtube.com/watch?v=fd3olXFKT3o
https://matthewdeeprose.github.io/altext.html
131
08/11/2021
Longdesc (2)
More information at https://www.d.umn.edu/itss/training/online/images/long_how/
Video example at https://www.youtube.com/watch?v=fd3olXFKT3o
https://matthewdeeprose.github.io/altext.html
132
08/11/2021
Longdesc (3)
More information at: https://www.d.umn.edu/itss/training/online/images/long_how/
Video example at: https://www.youtube.com/watch?v=fd3olXFKT3o
https://matthewdeeprose.github.io/altext.html
133
08/11/2021
Longdesc support (1)
https://matthewdeeprose.github.io/altext.html
134
08/11/2021
Longdesc support (2)
https://matthewdeeprose.github.io/altext.html
135
08/11/2021
Longdesc support (3)
https://matthewdeeprose.github.io/altext.html
136
08/11/2021
Longdesc example
<img
longdesc="graph-LD.html"
alt="Line graph of the number of subscribers"
src="graph.png">
https://matthewdeeprose.github.io/altext.html
137
08/11/2021
What can be used in HTML?
https://matthewdeeprose.github.io/altext.html
138
08/11/2021
Use in HTML (3)
https://matthewdeeprose.github.io/altext.html
139
08/11/2021
ALT text to use in place of the referenced image resource, for example due to processing constraints or user preference.
Use in HTML
https://matthewdeeprose.github.io/altext.html
140
08/11/2021
ALT text to use in place of the referenced image resource, for example due to processing constraints or user preference.
Use in HTML (2)
https://matthewdeeprose.github.io/altext.html
141
08/11/2021
ALT text to use in place of the referenced image resource, for example due to processing constraints or user preference.
HTML example
https://matthewdeeprose.github.io/altext.html
142
08/11/2021
<img alt="In the sky flies a red flag with a white cross whose vertical bar is shifted toward the flagpole." src="http://upload.a.org/wikipedia/commons/thumb/8/83/Dannebrog.jpg/180px-Dannebrog.jpg">
Decorative examples: alt=“”
https://matthewdeeprose.github.io/altext.html
143
08/11/2021
img.articleImage {
width: 20%;
float: right;
margin: 10px;
border: 2px solid white;
border-radius: 10px;
}
<img class="articleImage" src="wkp0xb38hz951.jpg" alt="">
Decorative examples: using CSS background
https://matthewdeeprose.github.io/altext.html
144
08/11/2021
.decorativeImage {
width: 20%;
height: 230px;
float: right;
margin: 10px;
border: 2px solid white;
border-radius: 10px;
background-size: cover;
background-repeat: no-repeat;
}
div#bench {
background-image: url("wkp0xb38hz951.jpg");
}
<div id="bench" class="decorativeImage"></div>
What about title?
https://matthewdeeprose.github.io/altext.html
145
08/11/2021
What about title? (2)
https://matthewdeeprose.github.io/altext.html
146
08/11/2021
<img alt=“In the sky flies a red flag with a white cross whose vertical bar is shifted toward the flagpole.”
title=“In the sky flies a red flag with a white cross whose vertical bar is shifted toward the flagpole.” src=“http://upload.a.org/wikipedia/commons/thumb/8/83/Dannebrog.jpg/180px-Dannebrog.jpg”>