Accessibility · Junior · Question 56 of 75

Which key do users expect to close a modal dialog?

Show the answer

Correct answer: Escape

Explanation

Esc closes a modal in the standard pattern. The native <dialog> opened with showModal() supports this out of the box.

Further reading

Problem with a question

Accessibility · Junior · question 56

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