Form Labels, Instructions, and Validation (with WCAG 2.2 updates) Flashcards

1
Q

Does every from control need a visible label?
A. True
B. False

A

A. True

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

<label>
Your favourite colour
</label>
<input></input>

Is this a correct example of the use of label tag on a form?

A. Yes
B. No

A

A. Yes

https://www.a11y-collective.com/courses/accessible-code/lessons/forms-2/topics/labels/

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

Why do you need use fieldsets and legends?

A

Screen readers announce that it’s a group and announce the legend, so blind users understand the context of what they need to fill out or check with the form controls.

https://www.a11y-collective.com/courses/accessible-code/lessons/forms-2/topics/fieldsets-and-legends/

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

For a screen reader, “form mode” means:
Check all that apply.

A. A screen reader user can type in form controls instead of using the short codes from the screen reader
B. Only form controls and their attached information are announced by the screen reader
C. A screen reader user is sent to a separate form with fewer options

A

A. A screen reader user can type in form controls instead of using the short codes from the screen reader
B. Only form controls and their attached information are announced by the screen reader

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

What is correct HTML?

A. <label>Your name</label> <label>First Name</label>
 <input></input> <label>Last Name</label>
 <input></input>

B. <fieldset> <legend>Your name</legend> <label>First Name</label>
 <input></input> <label>Last Name</label>
 <input></input> </fieldset>

A

B. <fieldset> <legend>Your name</legend> <label>First Name</label>
 <input></input> <label>Last Name</label>
 <input></input> </fieldset>

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

Aria-describedby is used to add extra information to a form control.

A. True
B. False

A

A. True

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

Autocomplete is required for every type of form control in a form.

A. True
B. False

A

B. False

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

Examples of good error prevention messages in a form are:
Check all that apply.

A, Please choose a strong password
B. Your password must be at least 8 characters long and contain a number
C. All fields are required

D. Your first name must be at least 3 characters long

A

B. Your password must be at least 8 characters long and contain a number

C. All fields are required


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

A placeholder can be used to replace the visible label.

A. True
B. False

A

B. False

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

What is a good way of indicating errors in a form after submit?
Check all that apply.

A. Add the text: Please fill out this field
B. Add the text: Please provide a valid email address, like name@example.com

C. Place a red border around the field and make the text bold
D. Add a list of errors at the top of the form and with each form control give an explanation of what needs improvement

A

B. Add the text: Please provide a valid email address, like name@example.com


D. Add a list of errors at the top of the form and with each form control give an explanation of what needs improvement

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

After an AJAX submit of a form, the keyboard focus should be put on:

A. The top of the form
B. The top of the error or success message
C. The top of the page

A

B. The top of the error or success message

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

Custom styling on a checkbox or radio button can be done by hiding the input element with the CSS display: none.

A. True
B. False

A

B. False

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

All date and time pickers need to be accessible, even if there is an accessible alternative present.

A. True
B. False

A

B. False

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

How can you help visitors to fill out a form that has a time limit?
Check all that apply.

A. Give them a list of the documentation they will need to fill out the form
B. Tell them to hurry up every 10 seconds
C. Give them the opportunity to extend the time limit
D. Block the user if the time limit has expired 3 times

A

A. Give them a list of the documentation they will need to fill out the form

C. Give them the opportunity to extend the time limit

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