Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Accessible Code

Total questions: 73

Worksheet time: 1hrs 4mins

Name
Class
Date
1.

Semantic HTML is important because, when applied, all assistive technology and browsers will know how to operate the functionality.

a)

True

b)

False

2.

What is the role, name and value of the link in:

<a href="https://www.google.com/">Google</a>

a)

Role = link, name = Google, value = https://www.google.com/

b)

Role = anchor, name = https://www.google.com/, value = Google

3.

Does this button have a proper, accessible name?


<button id="menu" title="menu"> <i class="fas fa-bars"></i> </button>

a)

Yes

b)

No

4.

Is <dl> flow content, according to the MDN Documentation?

a)

Yes

b)

No

5.

Doctype declaration is not necessary if the webpage does not contain HTML5 elements.

a)

True

b)

False

6.

The lang attribute can be set on the HTML root element to define the language of the web page.

a)

True

b)

False

7.

What is the lang value for Esperanto?

a)

lang="esp"

b)

lang="eo"

c)

lang="es"

8.

Which <title> text is useful for screen reader users? Check all that apply.

a)

Homepage

b)

24 search results for "apple pie" – Recipes R Us

c)

My Site – Just another WordPress site

9.

Should you set user-scalable=no?

a)

No, user-scalable=no prevents the user from zooming in and out

b)

Yes, because then I have more control over what the user sees

10.

<nav> is a top level landmark.

a)

True

b)

False

11.

<form role=”search”> is correct because:

a)

It's ok to change the role of an element

b)

This is a special case, because now screen reader users can quickly navigate to the search form

12.

An aria-label on a <nav>, like <nav aria-label=”sitemap”> is helpful for:

a)

Keyboard users

b)

Screen reader users

13.

A <div> can be used to indicate the meaning of a text element.

a)

True

b)

False

14.

What will a screen reader announce for:

<img src="IMG_123.jpg" alt="" />

a)

IMG_123

b)

Nothing, the image is omitted

c)

Image

15.

Which of these is true? Check all that apply.


a)

Images always need an alternative text, describing what's on the image

b)

Decorative images do not need an alt attribute

c)

An alt text may not be enough for Infographics

16.

The accessible name of an SVG can be provided by…? Check all that apply:

a)

The title element and an aria-labelledby on the SVG element

b)

The title element and an aria-describedby on the SVG element

c)

The title attribute on the SVG element

d)

An aria-label on the SVG element

17.

Is

<select multiple="multiple">

fully supported by browsers and assistive technology?

a)

Yes

b)

No

18.

Is the first rule of ARIA: don’t use ARIA?

a)

Yes, use Semantic HTML5 over ARIA.


b)

No, it is better to use ARIA and build components with divs and spans.

19.

Form controls like checkboxes and radio buttons look outdated.

It’s better to use a more modern approach than use common design patterns. It’s more refreshing for the user to create a new interface for my forms.

a)

True

b)

False

20.

For consistency it’s important to (check all that apply):


a)

Have consistent navigation on every page


b)

Keep the look and names of links and buttons consistent

c)

Have a help page and tooltips for all functionality

21.

Don’t depend on colour alone. That is important for:

a)

Colour blind users

b)

Blind users

c)

Users with a visual impairment

d)

Users from another culture, where colour can have a different meaning than the one you intended

22.

Screen reader software always reads the contents of a website from top down.

a)

True

b)

False

23.

It is important for the different levels of headings to be used in a linear, hierarchical order.

a)

True

b)

False

24.

Why should you opt for SVGs when presenting text in images?


a)

Smaller file size

b)

Users can zoom in without the text becoming blurry

c)

Screen reading software can read the text

25.

What are drawbacks of content in CSS?
(check all that apply):


a)

Screen reader software reads it out far too loudly


b)

Screen reader support is buggy


c)

It can be inaccessible to users who disable CSS or who use their own CSS

d)

The contrast is too low for users with a visual impairment

26.

When should you use the lang attribute for parts of the content?


a)

If your page contains content in a language that differs from the site language

b)

For comedic effect: use a random language to have your text read with a funny accent

c)

If your page contains proper names, technical terms, words of indeterminate language and words or phrases in well-known slang

27.

Which values can aria-live hold?

a)

aria-live="true" and aria-live="false"

b)

aria-live="indirect", aria live="direct" and aria-live="off"

c)

aria-live="polite", aria-live="assertive" and aria-live="off"

28.

Aria-atomic is used to set whether the screen reader should always announce a live region as a whole, even if only part of the region changes.


a)

True

b)

False

29.

The role=”alert” has an implicit value of..?

a)

aria-live="polite", aria-atomic="true"

b)

aria-live="assertive", aria-atomic="true"

30.

The role=”alert” can be added to every element in the DOM even if that means the role of the element will change.

a)

True

b)

False

31.

If the dynamic change contains a lot of information, how should you handle this with aria-live?

a)

Read all information that has been changed

b)

Announce there has been a change and where the changed information can be found on the page

32.

aria-expanded should be placed on:

a)

The element that expands, for example the nav of a menu

b)

The button that is used to toggle the expansion



33.

Setting the orientation of a web page fixed to landscape could lead to accessibility issues.

a)

True

b)

False

34.

Creating a responsive website is also useful for visitors who like to zoom in.

a)

True

b)

False

35.

Text resizing is the same as zooming in.

a)

True

b)

False

36.

A user should be able to:

a)

Zoom in up to 400% and enlarge text only up to 200%

b)

Zoom in up to 400% and enlarge text only up to 400%

c)

Zoom in up to 200% and enlarge text only up to 400%

d)

Zoom in up to 200% and enlarge text only up to 200%

37.

Creating one key shortcuts:


a)

Can have a negative effect on voice recognition interaction


b)

Can have a negative effect on screen reader interaction

c)

All of the above

38.

Don’t initiate a change of context on:

a)

Hover, focus or input

b)

Hover, focus or input, unless the user has been warned

39.

What would a good alternative be for zooming in on a mobile, for a user with a stylus?

a)

Tell them to use 2 fingers to zoom in and out

b)

Add + and – buttons to zoom in and out

40.

What are the accessibility issues with the following code? Check all that apply.

<a id="menu" data-title="Menu"></a>

a)

The link doesn't get keyboard focus

b)

The link does not have an accessible name

c)

This should be a button, because the element invokes an action

d)

There is no indication, for the screen reader user, whether the menu is open or closed

e)

"data-title" is not allowed

41.

Which CSS properties hide an element, and the content inside, from a screen reader? Check all that apply.

a)

display: none;

b)

visibility: hidden;


c)

opacity: 0;

42.

Which CSS properties remove an element, and the content inside, from the tab order? Check all that apply.

a)

display: none; 


b)

visibility: hidden;

c)

opacity: 0;

43.

aria-hidden=”true” … Check all that apply:

a)

hides an element, and the content inside, from sight

b)

hides an element, and the content inside, from a screen reader

c)

removes an element, and the content inside, from the tab order

44.

The .screen-reader-text class in WordPress (check all that apply):

a)

hides an element, and the content inside, from sight


b)

hides an element, and the content inside, from a screen reader

c)

removes an element, and the content inside, from the tab order

45.

Visible focus means: a keyboard user must be able to see where the keyboard focus is.

a)

True

b)

False

46.

Predictable focus means: a keyboard user must be able to predict where the next keyboard focus will be.

a)

True

b)

False

47.

If you don’t like the outline of an element that gets focus you should:

a)

Add the CSS outline: 0 to the stylesheet


b)

Change the outline to a more visually appealing style with CSS

c)

Learn to live with it, the native browser outline is always the best option

48.

What is important when including a form on a webpage?

a)

The first form input should get the keyboard focus, using tabindex="1"


b)

Each form field should have a tab index, to make sure users fill out the form in the right way

c)

The tab order of all the focusable elements in the DOM should be the same as the visual order. Positive tab indexes on form fields are not allowed.

49.

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

a)

The top of the error or success message, just above the form

b)

The top of the page

50.

After the user closes a modal, the keyboard focus should be put on:

a)

The button that opened the modal

b)

The top of the page

51.

A good page <title> for a search result page is:

a)

Search results – My site

b)

You searched for Drupal


c)

32 search results for Drupal, page 1 of 2 – My site


d)

32 search results for Drupal, read them in the list below just after the H2 heading called Results, this is the first page of 2 in total – My Site

52.

A skip link (check all that apply):

a)

Is useful for keyboard users to skip content that is repeated on every page, for example the menu

b)

Must become visible on keyboard focus

c)

Is not necessary when the heading and landmark structure are semantically correct


d)

Must be the first focusable element on a webpage

53.

An H1 heading (check all that apply):

a)

Describes what the page is about

b)

Can be used multiple times

c)

Is preferably placed just above the main content

54.

Multiple <nav>elements can be set apart by giving them:

a)

An aria-label, for example <nav aria-label="sitemap">


b)

An aria-label, with the description of the role. For example <nav aria-label="sitemap navigation">

c)

A title, for example <nav title="sitemap">

55.

For a table, which of the following is true:

a)

A caption is the name of the table, a summary explains how to use that table

b)

A summary is the name of the table, a caption explains how to use that table

56.

Screen readers can announce the correlation between header cells <th> and data cells </td>.

a)

True

b)

False

57.

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

58.

What is correct HTML?

a)

What is correct HTML?<label>Your name</label> <label for="first-name">First Name</label>
 <input id="first-name"> <label for="last-name">Last Name</label>
 <input id="last-name">

b)

<fieldset> <legend>Your name</legend> <label for="first-name">First Name</label>
 <input id="first-name"> <label for="last-name">Last Name</label>
 <input id="last-name"> </fieldset>

59.

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

a)

True

b)

False

60.

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

a)

True

b)

False

61.

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

62.

A placeholder can be used to replace the visible label.

a)

True

b)

False

63.

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

64.

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

65.

Which current (in 2021) browsers fully support the <dialog> element on desktop?Check all that apply.

a)

Opera

b)

Edge

c)

Firefox

d)

Chrome

e)

Safari

66.

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

67.

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

a)

True

b)

False

68.

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

69.

Yes! Your frontend code is parsing. This means:

a)

The syntax of the frontend code is error-free

b)

The frontend code is fully accessible

70.

IDs of form controls should be unique on a web page.

a)

True

b)

False

71.

The steps required for accessibility testing are:

a)

Keyboard testing

b)

Automated accessibility checks in the browser

c)

Zooming in and out in your browser

d)

All of the above

72.

When opening a modal (pop-up), the keyboard focus can be put on …Check all that apply.

a)

The close button

b)

The first input field


c)

The button for opening the modal

d)

The top of the page

73.

What can you check with a screen reader?Check all that apply.

a)

Whether the spelling of my content is correct

b)

Whether link texts make sense

c)

Visual focus styles

d)

Whether everything is understandable if you read from the top down

e)

Feedback on dynamic changes