Accessibility · Junior · Question 44 of 75

Does a screen reader read an element with display: none?

Show the answer

Correct answer: No, it's removed from the accessibility tree

Explanation

display: none and visibility: hidden hide content from everyone. To hide something only visually, use a visually-hidden class.

Further reading

Problem with a question

Accessibility · Junior · question 44

Test yourself

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

Take this quiz