Accessibility · Middle · Question 56 of 75

A scrollable code block or table isn't reachable by keyboard. What helps?

Show the answer

Correct answer: tabindex="0" with a name and a suitable role

Explanation

Keyboard users need focus to scroll it with arrow keys. Some browsers do this automatically, but not all.

Further reading

Problem with a question

Accessibility · Middle · question 56

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz