Sample questions
Question 1Easy
Which element is the most accessible choice for a clickable action?
- <span onclick>
- <p onclick>
- <button>
- <div onclick>
Answer: C. <button>
Explanation
A native button is focusable, announced as a button and activated by Enter and Space without extra code.
Step-by-step solution
- A native button is focusable by default.
- Screen readers announce it as a button.
- Enter and Space activate it without extra code.
- So the correct answer is the native button element.
Why the other options are wrong
- A. A span with onclick is not focusable or announced as a button.
- B. A p with onclick has the same problem as a span.
- D. A div with onclick needs extra code for focus and keys.
Tip: Use a native button for actions and a link for navigation.
Question 2Easy
What does the POUR acronym in accessibility stand for?
- Perceivable, Optimised, Usable, Reliable
- Perceivable, Operable, Understandable, Robust
- Public, Open, Universal, Readable
- Portable, Open, Usable, Responsive
Answer: B. Perceivable, Operable, Understandable, Robust
Explanation
These are the four WCAG principles that the success criteria are grouped under.
Step-by-step solution
- WCAG is built on four principles.
- They are Perceivable, Operable, Understandable and Robust.
- Each success criterion falls under one of them.
- So the correct answer is Perceivable, Operable, Understandable, Robust.
Why the other options are wrong
- A. Optimised and Reliable are not WCAG principles.
- C. Public, Open, Universal and Readable are not the principles.
- D. Portable, Open, Usable and Responsive are not the principles.
Tip: POUR: Perceivable, Operable, Understandable, Robust.
Question 3Easy
What does the alt attribute on an img provide?
- The image file name for search engines
- A text alternative for screen readers
- A tooltip shown on mouse hover only
- A fallback colour while loading
Answer: B. A text alternative for screen readers
Explanation
Screen readers announce alt text, and it is shown if the image fails; decorative images use alt="".
Step-by-step solution
- The alt attribute gives a text description of an image.
- Screen readers read this text aloud.
- It is also shown if the image cannot load.
- So the correct answer is a text alternative for screen readers.
Why the other options are wrong
- A. File names do not come from alt, and alt is not for search engine ranking.
- C. Hover tooltips come from title, not alt.
- D. Fallback colours are set with CSS, not alt.
Tip: Describe what the image conveys; use alt="" for decorative images.
Question 4Easy
How should a text input be associated with its visible label?
- <label for="email"> matching the input's id
- Setting the input title to the label text
- Using placeholder text as the label
- Placing the label text above the input only
Answer: A. <label for="email"> matching the input's id
Explanation
A programmatic label is announced by screen readers and enlarges the click target; placeholders vanish when typing.
Step-by-step solution
- A visible label must be linked to its input in code.
- The label for attribute must match the input's id.
- Screen readers then announce the label with the field.
- So the correct answer is label for="email" matching the input's id.
Why the other options are wrong
- B. A title is a tooltip and is not the visible label.
- C. A placeholder disappears when typing and is not a label.
- D. Position alone does not link a label to the input in code.
Tip: Pair every input with a label using for and id.
Question 5Medium
What does aria-live="polite" do on a region?
- Makes the region focusable by keyboard
- Interrupts speech to announce changes
- Hides the region from screen readers
- Announces updates when the reader is idle
Answer: D. Announces updates when the reader is idle
Explanation
Live regions tell assistive tech to announce dynamic changes; polite waits, assertive interrupts.
Step-by-step solution
- A live region announces dynamic changes to screen reader users.
- Polite waits until the user is idle before announcing.
- Assertive would interrupt instead.
- So the correct answer is announcing updates when the reader is idle.
Why the other options are wrong
- A. Focusability is set by tabindex, not aria-live.
- B. Interrupting is assertive, not polite.
- C. Aria-live does not hide the region; it makes it announced.
Tip: Polite waits for the reader to be idle; assertive interrupts.
Question 6Medium
What is the minimum contrast ratio WCAG AA requires for normal-size body text?
- 4.5:1
- 7:1
- 3:1
- 2:1
Answer: A. 4.5:1
Explanation
AA needs 4.5:1 for normal text and 3:1 for large text; 7:1 is the AAA level.
Step-by-step solution
- WCAG AA sets the contrast minimum for normal text.
- For normal body text the minimum is 4.5:1.
- Large text needs only 3:1 at AA.
- So the correct answer is 4.5:1.
Why the other options are wrong
- B. 7:1 is the AAA level for normal text.
- C. 3:1 is the AA minimum for large text only.
- D. 2:1 is below every WCAG level.
Tip: AA: 4.5:1 normal text, 3:1 large text; AAA: 7:1 normal text.
Question 7Medium
What is the "first rule of ARIA"?
- Avoid using HTML headings on a page
- Use aria-label instead of visible text
- Prefer native HTML elements over ARIA
- Add a role attribute to every element
Answer: C. Prefer native HTML elements over ARIA
Explanation
Native elements come with built-in semantics and keyboard support; ARIA only changes how things are announced.
Step-by-step solution
- ARIA supplements HTML semantics.
- Native elements such as button already carry roles and behaviour.
- So prefer native elements first.
Why the other options are wrong
- A. Headings are good for accessibility.
- B. Visible text is preferred.
- D. Adding roles everywhere is bad practice.
Tip: No ARIA is better than bad ARIA.
Question 8Medium
What does aria-hidden="true" do?
- Hides the element visually but keeps it read
- Disables the element for mouse users
- Makes the element invisible to search engines
- Hides the element from assistive technology
Answer: D. Hides the element from assistive technology
Explanation
It removes the element and its children from the accessibility tree; it should not be put on focusable content.
Step-by-step solution
- Aria-hidden="true" removes an element from the accessibility tree.
- Screen readers then skip the element and its children.
- The element can still be seen on screen.
- So the correct answer is hiding the element from assistive technology.
Why the other options are wrong
- A. It does not keep the element read; it hides it from assistive tech.
- B. Mouse users are not affected.
- C. Search engines are not affected by aria-hidden.
Tip: Aria-hidden hides from screen readers only; do not put it on focusable content.
Question 9Hard
A developer builds a clickable div with role="button" instead of using a native button element. What must they add themselves?
- tabindex="0" and Enter/Space key handling
- An alt attribute describing the action
- Only an onclick handler, nothing else
- aria-live="assertive" on the element
Answer: A. tabindex="0" and Enter/Space key handling
Explanation
role only changes the announced semantics; focusability and keyboard activation that <button> gives for free must be added manually.
Step-by-step solution
- role="button" only changes what screen readers announce.
- It does not make the div focusable.
- It also does not make Enter or Space activate it.
- So the developer must add tabindex="0" and key handling for Enter and Space.
Why the other options are wrong
- B. An alt attribute is not valid on a div and is not needed for a button role.
- C. Onclick alone misses keyboard focus and key activation.
- D. Aria-live is for announcing changes, not for building a button.
Tip: A custom button needs role, tabindex, and Enter and Space handling; a native button gets them free.
Question 10Hard
Which heading structure is best for screen-reader navigation?
- No headings; use bold paragraphs instead
- Only h1 elements, one for every section
- One h1, then h2 and h3 nested in order
- Any heading levels chosen for font size
Answer: C. One h1, then h2 and h3 nested in order
Explanation
Screen-reader users jump between headings, so levels should reflect the outline rather than visual size.
Step-by-step solution
- Screen reader users jump between headings to scan a page.
- Headings should follow the outline of the page.
- One h1 for the page title, then h2 and h3 nested in order fits that outline.
- So the correct answer is one h1, then h2 and h3 nested in order.
Why the other options are wrong
- A. Bold paragraphs are not headings and cannot be navigated by heading.
- B. Using only h1 flattens the outline and loses the structure.
- D. Heading levels should reflect the outline, not font size.
Tip: Pick heading levels by outline, and style them with CSS.
Practise all 15 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →