Accessibility · Middle · Question 31 of 75

What does the inert attribute do?

Show the answer

Correct answer: Blocks focus and clicks and hides content from assistive tech

Explanation

Setting inert on background content is the modern way to keep users in a custom modal. It replaces manual aria-hidden and tabindex juggling.

Further reading

Problem with a question

Accessibility · Middle · question 31

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