Images, SVG, and Canvas Flashcards

1
Q

True or false: alt text should include words that identify the element as a graphic or image.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Though not a technical limit, what is the recommended maximum image alt text character count?

A

About 150 characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are three ways to handle images that are purely decorative or redundant to content (i.e. not meant to be read by a screen reader)?

A
  1. Give them null alt text (alt=””)
  2. Add ARIA role=”presentation”
  3. Implement the image as a CSS background
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or false: if an image does not have an alt attribute, a screen reader will not read it.

A

False. A screen reader will often read the source attribute (the file name) if no alt attribute is on the element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or false: all actionable images (e.g., links, buttons, controls) must have alternative text.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

True or false: you should include text like ‘Link to’ in the alt text of an image that is also a link.

A

False. Screen readers announce that a linked image is a link graphic, so writing that out in the alt text is redundant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Under what two conditions must you provide a method to pause, stop, or hide prerecorded video?

A
  1. Content begins playing automatically

2. Content lasts more than 5 seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Animated images may trigger seizures in some users if they flash or flicker how many times per second?

A

More than three times per second

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When alt text alone is not descriptive enough, what are five ways to provide long descriptions for complex images?

A
  1. Provide the long description in the context of the HTML document itself.
  2. Provide a button that expands a collapsed region that contains the long description.
  3. Provide a button to open a dialog that contains the long description.
  4. Provide a link to a long description on another page via a normal link text.
  5. Provide a link to a long description on another page via the longdesc attribute.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

True or false: if a complex image or graphic needs a long description in addition to alt text, it is not necessary to make that description accessible to sighted users.

A

False. The long description (or a link or button to access the long description) SHOULD be visible to sighted users because some complex images may be too complex for sighted users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or false: if an image has a description that is set with the longdesc attribute, that description is accessible to all users.

A

False. The longdesc attribute is only accessible to users with screen readers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which aria- attribute is used to indicate the IDs of the elements that describe an object?

A

aria-describedby

src: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or false: an image must not include informative text if an equivalent visual presentation of the text can be rendered using real text.

A

True.

Exception: WCAG allows for the use of text in images when the image itself is decorative in nature or the text in the image is essential. A typical example of this is a company logo. Text in an image is permissible when it is part of a logo. Remember to include alt text that states the text in the logo.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Though it’s not recommended, if you must use CSS images for informative or actionable images, what are two ways to provide alt text?

A
  1. Put aria-label on the element
  2. Use the ‘clipped method’: add visually hidden text within the link element.

< a href=”link-to-thing.com” class=”icon” >
< span class=”visually-hidden” > Description of image < / span >< / a >

// css
. icon  {
     background-image: url('icon.png');
}
. visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or false: you can use a class with visibility:hidden to hide something on the page while keeping it accessible to screen reader users.

A

False. visibility:hidden will cause the text to be ignored by screen readers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or false: all < area >s in a map image must have their own alt text.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

True or false: Images of text are as accessible as regular text in a web page.

A

False

18
Q

True or false: If the < area > elements of an image map have alternative text, then alternative text does not need to be provided for the main < img > element.

A

False

19
Q

Why is it important that alternative text not exceed about 150 characters?

A. Screen readers do not treat alternative text like they treat regular text in an HTML document.
B. Because all it takes is 150 characters to accurately describe an image.
C. If alternative text is longer than 150 characters, the user becomes bored listening to the image description.
D. It is not important. Alternative text can exceed 150 characters if that is needed to describe an image.

A

A. Screen readers do not treat alternative text like they treat regular text in an HTML document.

20
Q

Composing alternative text for images is based on:

A. The visual characteristics of the image.
B. The file name of the image.
C. What the author intends to convey with the image.
D. It really is not based on anything.

A

C. What the author intends to convey with the image.

21
Q

What is an effective way to provide alternative text for visual driving directions?

A. Describe visually where streets, roads, and bridges are in relation to one another.
B. Describe the colors of roads and different areas on the map.
C. There is no way to compose alternative text for driving directions.
D. Compose text-based directions that include street names, turns, exits, distance, etc.

A

D. Compose text-based directions that include street names, turns, exits, distance, etc.

22
Q

True or false: The alt text for an image of a painting can direct users to a longer description of the painting.

A

True

23
Q

True or false: All SVG < img > elements SHOULD be set to role=”img”.

A

True

24
Q

What are three ways to provide meaningful, concise alternative text for SVG < img > elements?

A
  1. Use alt text
  2. Use aria-label
  3. Use aria-labelledby with a separate caption
25
Q

True or false: All informative or actionable < svg > elements MUST have meaningful alternative text (via the < title > element).

A

True

26
Q

True or false: SVG objects can be embedded via < object > or < iframe > as long as they have proper alt text.

A

False. An SVG object SHOULD NOT be embedded via < object > or < iframe > because the results of using those elements are not well-supported by assistive technologies.

27
Q

True or false: SVG images should not include a base background color behind the important parts of the image.

A

False. If an SVG image does not have a background color set, the background color of the image itself will change when the user switches into Windows High Contrast Mode. That may or may not be a problem for a given image, but if large portions of the SVG image are transparent, and if they depend on a particular background color on the web page to look correct, the SVG image will probably be difficult to discern when the background color changes.

28
Q

Why should role=”img” be assigned to informative and actionable icon fonts?

A. It should be assigned so that screen readers will ignore icon fonts.
B. It should be assigned so that icon fonts receive visual focus.
C. It should be assigned so that screen readers will recognize icon fonts as an images.
D. Icon fonts aren’t images, so they don’t need to be assigned the role=”img”.

A

C. It should be assigned so that screen readers will recognize icon fonts as an images.

29
Q

When assigning alternative text to actionable icon fonts (buttons or links), which technique is most effective?

A. Add aria-label to the button or link
B. Add hidden text within the button or link using CSS clip assigned to the surrounding span element
C. Add text to an alt attribute in the surrounding span element.

A

A. Add aria-label to the button or link

30
Q

Which of the following methods is recommended for decorative or redundant icon fonts?

A. Decorative or redundant icon fonts should be described using aria-label.
B. Decorative or redundant icon fonts should be assigned role=”img”.
C. Decorative or redundant icon fonts should be assigned an empty, or null, alt attribute.
D. Decorative or redundant icon fonts should be set to aria-hidden=”true”.

A

D. Decorative or redundant icon fonts should be set to aria-hidden=”true”.

31
Q

True or false: all < canvas > elements should have a background fill.

A

True. If a < canvas > element does not have a background fill color, the background color may change when users change their color or contrast preferences, such as when using Windows High Contrast Mode.

32
Q

True or False: Adding text within an element or in an alt attribute on the element are both ways of adding alternative text to elements.

A

False

33
Q

What must be done to the element if it is used to present an image?

A. It must be assigned ARIA role=”presentation”.
B. It must be assigned ARIA role=”img”.
C. Nothing needs to be done to the element.
D. It must have an alt attribute.

A

B. It must be assigned ARIA role=”img”.

34
Q

True or false: If a < canvas > element does not specify the background color, when a user enters into Windows High Contrast Mode, the background color of the image will change along with the color of the web page as a whole.

A

True

35
Q

Which of the following is NOT a way of providing alternative text for simple elements?

A. Using the aria-label attribute on the element.
B. Using the alt attribute on the element.
C. Providing a description within the element and referencing it using the aria-labelledby attribute.

A

B. Using the alt attribute on the element.

36
Q

True or false: There is no alt attribute for video and audio.

A

True

37
Q

True or false: Providing documents in HTML format is preferred over non-HTML documents because of the accessibility features available in HTML.

A

True

38
Q

Which of the following is true about audio descriptions?

A. Audio descriptions describe important visual information through synchronized captions.
B. Audio descriptions are not required if there is no audio content.
C. Audio descriptions describe important visual information that is not conveyed through a video’s audio track.
D. Audio descriptions describe important visual information through a transcript.

A

C. Audio descriptions describe important visual information that is not conveyed through a video’s audio track.

39
Q

True or false: Using the accessibility API for Silverlight and Flash makes them accessible across all screen readers.

A

False

40
Q

True or false: A PDF document must be untagged in order for screen reader users to access the document.

A

False