Accessibility · Junior · Question 58 of 75

Where should focus go after a modal closes?

Show the answer

Correct answer: Back to the element that opened it

Explanation

Otherwise the user is sent back to the top and loses their place. The native <dialog> restores focus automatically.

Further reading

Problem with a question

Accessibility · Junior · question 58

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