57
An image is worth a thousand words, but... @TouficSbeiti

An image is worth a thousand words, but

Embed Size (px)

Citation preview

Page 1: An image is worth a thousand words, but

An image is worth a thousand words, but...

@TouficSbeiti

Page 2: An image is worth a thousand words, but

285MVisually impaired

39MBlind

246MLow

vision

Page 3: An image is worth a thousand words, but

MISSING

Visually impaired

INCORRECT

POOR

ALT

Page 4: An image is worth a thousand words, but

Alternative text serves several functions

• Screen Readers

• Image file not loaded

• Image file disabled

• Search Engines

Page 5: An image is worth a thousand words, but
Page 6: An image is worth a thousand words, but

alt = Toufic Sbeiti

alt = Montreal Impact fan

alt = Mac user

alt = Laptop user

alt = Ottawa accessibility camp awesome t-shirt

alt = Halloween flower arrangement

alt = Toufic Sbeiti wearing his Ottawa accessibility camp awesome t-shirt and his Montreal Impact hat enjoying a delicious mango juice while working on his confoo presentation on his kitchen table decorated with a nice flower arrangement alt = NOTHING!

Page 7: An image is worth a thousand words, but
Page 8: An image is worth a thousand words, but

Informative Decorative Functional

Complex Groups of images

Images of text

Image maps

Page 9: An image is worth a thousand words, but

Informative Images

Informative

Page 10: An image is worth a thousand words, but

Informative

613-319-1852

613-319-0202

<p><img src=”1.png" alt=”Home phone number”>613-319-1852</p>

<p><img src=”2.png" alt=”Cell phone number”>613-319-0202</p>

1- Images used to label other information

Page 11: An image is worth a thousand words, but

Informative

<img src="dog.jpg" alt="Dog with a bell attached to its collar.">

2- Images used to supplement other information

Off-duty guide dogs often wear a bell. Its ring helps the blind owner keep track of the dog’s location

Page 12: An image is worth a thousand words, but

Informative

<img src="family.jpg" alt="We’re family-friendly.">

3- Images conveying an impression

Page 13: An image is worth a thousand words, but

Informative

<img src="family.jpg" alt=”Angry user.">

4- Images conveying an emotion

Page 14: An image is worth a thousand words, but

Decorative Images

InformativeDecorative

Page 15: An image is worth a thousand words, but

Informative 1- Image used as part of page design

Decorative

<img src="topinfo_bg.png" alt="">

<img src="topinfo_bg.png" role="presentation">

Page 16: An image is worth a thousand words, but

Informative 1- Image used as part of page design

Decorative

Page 17: An image is worth a thousand words, but

Informative2- Image used for ambience

(eye-candy)

Decorative

Don’t miss the impressive Tropical House – a huge greenhouse that displays examples of exotic plant-life from every tropical environment on the planet.

<img src="tree.gif" alt="">

Page 18: An image is worth a thousand words, but

Informative2- Image used for ambience

(eye-candy)

Decorative

Page 19: An image is worth a thousand words, but

Informative 3- Image with adjacent text alternative

Decorative

<p><img src=”1.png" alt=””>Cell phone: 613-319-1852</p>

<p><img src=”2.png" alt=””>Home phone: 613-319-0202</p>

Cell phone: 613-319-1852

Home phone: 613-319-0202

Page 20: An image is worth a thousand words, but

Functional Images

InformativeFunctional

Page 21: An image is worth a thousand words, but

Informative1- Image used alone as a linked logo

Functional

Page 22: An image is worth a thousand words, but

Informative2- Logo image within link text

Functional

Page 23: An image is worth a thousand words, but

Informative 3- image conveying information within link text

Functional

<a href=”step3.html” target=”_blank”>Step 3 Pay the Fees<img src=”newWindow.png" alt=”Open in a new window” /></a>

Page 24: An image is worth a thousand words, but

Informative4- Stand-alone icon image that has a

function

Functional

<img src=”printer.png" alt=”Print this page” />

Page 25: An image is worth a thousand words, but

Informative 5- Image used in a button

Functional

<button><img src=”magnifier.png" alt=”Search”/>

</button>

Page 26: An image is worth a thousand words, but

Images of text

Images of text

Page 27: An image is worth a thousand words, but

Images of text

1- Styled text with decorative effect

Page 28: An image is worth a thousand words, but

Images of text

1- Styled text with decorative effect

Page 29: An image is worth a thousand words, but

Images of text 2- Mathematical expressions

Page 30: An image is worth a thousand words, but

InformativeGroups of images

Group of images

Page 31: An image is worth a thousand words, but

InformativeGroups of images

Page 32: An image is worth a thousand words, but

InformativeGroups of images

<img src=”star-full.png" alt=”Rating of 3 of 5 stars” /><img src=”star-full.png" alt=”” /><img src=”star-full.png" alt=”” /><img src=”star-full.png" alt=”” /><img src=”star-full.png" alt=”” />

1- Multiple images conveying a single piece of information

Page 33: An image is worth a thousand words, but

InformativeGroups of images

2- A collection of images

Page 34: An image is worth a thousand words, but

InformativeGroups of images

2- A collection of images

Page 35: An image is worth a thousand words, but

Image maps

Image maps

Page 36: An image is worth a thousand words, but

Image maps

Page 37: An image is worth a thousand words, but

Image maps

<img alt="map of canada" src="canada-map.gif” usemap="#moc" />

<map id="moc" name="moc”>

<area alt="Quebec” coords="398,426,[...]368,418" href="Quebec.html” shape="POLY”>

<area alt="Ontario" coords="329,471,[...] 352,232,395" href="Ontario.html" shape="POLY”></map>

Page 38: An image is worth a thousand words, but

Image maps

Page 39: An image is worth a thousand words, but

Complex images

Image mapsComplex

Page 40: An image is worth a thousand words, but

Image mapsComplex

Page 41: An image is worth a thousand words, but

Image mapsComplex

1- A text link to the long description adjacent to the image

<p>

<img src="chart.png” alt="Bar chart showing monthly and total visitors for the first quarter 2014 for sites 1 to 3">

<br>

<a href="2014-first-qtr.html">Example.com Site visitors Jan to March 2014 text description of the bar chart</a>

</p>

Page 42: An image is worth a thousand words, but

Image mapsComplex

2- A text link to the long description adjacent to the image using figure

and figcaption

<figure role="group"> <img src="chart.png” alt="Bar chart showing monthly

and total visitors for the first quarter 2014 for sites 1 to 3">

<figcaption><a href="2014-first-qtr.html">Example.com Site visitors

Jan to March 2014 text description of the bar chart</a> </figcaption>

</figure>  

Page 43: An image is worth a thousand words, but

Image mapsComplex

3- Describing the location of the long description in the alt attribute

<img src="chart.png” alt="Bar chart showing monthly and total visitors for the first quarter 2014 for sites 1 to 3. Described under the heading Site visitors full text.">

[…]

<h4>Site visitors full text</h4>

[…]  

Page 44: An image is worth a thousand words, but

Image mapsComplex

4- Structurally associating the image and its adjacent long description

(HTML5)<figure role="group">

<img src="chart.png” alt="Bar chart showing monthly and total visitors for the first quarter 2014 for sites 1 to 3, described in detail below.">

<figcaption>

<h2>Overview</h2> <p>The chart shows the website hits for the first quarter of 2014 …</p><h2>Values</h2> <table> <tr>…</tr> </table> </figcaption>

</figure>  

Page 45: An image is worth a thousand words, but

Image mapsComplex 5- Providing a link to the long

description via longdesc (new page)

<img src="chart.png"alt="Bar chart showing monthly and total

visitors for the first quarter 2014 for sites 1 to 3"longdesc="2014-first-qtr.html">

<a href="2014-first-qtr.html">Long Description</a>

Page 46: An image is worth a thousand words, but

Image mapsComplex 6- Providing a link to the long

description via longdesc (same page)

<img src="chart.png"alt="Bar chart showing monthly and total

visitors for the first quarter 2014 for sites 1 to 3"longdesc="#chart-longdesc">

[…]

<div id="chart-longdesc">[…]

</div>

Page 47: An image is worth a thousand words, but

Image mapsComplex Description containing textual

information

<img src="Toufic.jpg" alt="Toufic Sbeiti" aria-describedby="description">[…]<p id="description"> Toufic Sbeiti, a Montreal Impact fan, wearing the bleu Accessibility Ottawa Camp t-shirt while enjoying a glass of mango juice during the month of October and working late on his presentation for Accessibility Camp Toronto. </p>

Page 48: An image is worth a thousand words, but

Web Developer Toolbar

Page 49: An image is worth a thousand words, but

ANIMATION

Visually impaired

COLOR

TEXT

Page 50: An image is worth a thousand words, but
Page 51: An image is worth a thousand words, but

An alt Decision Tree

Page 52: An image is worth a thousand words, but

An alt Decision Tree

Does the image contain text?

Decorative Image

Use an empty alt attribute

… and the text in the image is also present as real text nearby.

… and the text is only shown for visual effects.

… and the text in the image is not present otherwise.

Image of text

Use the alt attribute to include the text of the image.

Page 53: An image is worth a thousand words, but

An alt Decision Tree

Is the image used in a link or a button, and would it be hard or impossible to understand what the link or the button does, if the image wasn’t there?

Functional Images

Use the alt attribute to communicate the destination of the link or action taken.

Page 54: An image is worth a thousand words, but

An alt Decision Tree

Does the image contribute meaning to the current page or context?

Informative Images

Use a brief description of the image in a way that conveys that meaning in the alt attribute.

… and it’s a simple graphic or photograph.

… and it’s a graph or complex piece of information.

… and it shows content that is redundant to real text nearby.

Functional Images

Use an empty alt attribute.

Complex Images

Include the information contained in the image elsewhere on the page. 

Page 55: An image is worth a thousand words, but

An alt Decision Tree

Is the image purely decorative or not intended for the user?

Decorative Image

Use an empty alt attribute

Page 56: An image is worth a thousand words, but

@TouficSbeiti

Thank You!

Page 57: An image is worth a thousand words, but

References• Web Accessibility Tutorials / Images Concepts

http://www.w3.org/WAI/tutorials/images/

• WebAim : Alternative Texthttp://webaim.org/techniques/alttext/

• WebAim: Accessible Imageshttp://www.w3.org/WAI/tutorials/images/complex/

• Visual impairment and blindnesshttp://www.who.int/mediacentre/factsheets/fs282/en/