Applied Accessibility Flashcards

1
Q

When do you set the alt attribute to an empty string

A

When an image is decorative or already has a caption.

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

< div >

A

groups content

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

< section >

A

groups related content

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

< article >

A

groups, independent, self-contained content

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

< main >

A

for the main content of a page

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

< header >

A

It’s used to wrap introductory information or navigation links for its parent tag and works well around content that’s repeated at the top on multiple pages.
Meant for use in the body tag of an HTML document.

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

< nav >

A

Meant to be wrapped around navigation links.

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

< footer >

A

wraps around copyright information or links to related documents that usually sit at the bottom of a page.

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

< audio >

A

Meant to be wrapped around audio.

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

How to embed audio on a page

A

< audio controls >
< source src=”https://s3.amazonaws.com/freecodecamp/screen-reader.mp3” type=”audio/mpeg” />
< /audio >

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

< figure >

A

Should be wrapped around visual representations like graphs and such.

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

< fig caption >

A

wrapped around the figure element, meant to caption graphs for the visually impaired.

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

How to improve form field accessibility with the label element

A

The label tag wraps the text for a specific form control item, usually the name or label for a choice. This ties meaning to the item and makes the form more readable. The for attribute on a label tag explicitly associates that label with the form control and is used by screen readers.
(ex: < label for=”email”>Email:< /label >
< input type=”text” id=”email” name=”email” >

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

< fieldset >

A

tag that surrounds the entire grouping of radio buttons.

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

< legend >

A

tag to provide a description for the grouping, which is read by screen readers for each choice in the fieldset element.
(ex: < fieldset >
< legend >Choose one of these three items:< /legend >

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

How to add an accessible date picker:

A

Ensure the label for attribute and the id of the input are the same
(ex: < label for=”pickdate” >Enter a date:< /label >
< input type=”date” id=”pickdate” name=”date” >

17
Q

How to standardize times:

A

< time datetime=”2016-09-15”>Thursday, September 15< sup >th< /sup >< /time >

18
Q

Contrast

A

Ensure that text is readable by have a contrast ratio of at least 6.5:1.

19
Q

Colorblindness

A

Ensure that the colors you are using to styles your text are close to one another on the color wheel or colorblind people might not be able to read the text.

20
Q

Accesskey

A

use the Accesskey attribute to create shortcuts for people using screenreader, it should typically be used around important navigation links and such.

21
Q

Use tabindex to add focus to an element

A

When lick tab you’ll automatically get placed on text field but to increase accessibility you should add tab indexes to instructions for forms.
(ex: < div tabindex=”0” >I need keyboard focus!< /div >)