Accessibility · Middle · Question 31 of 75
What does the inert attribute do?
- 1Blocks focus and clicks and hides content from assistive tech
- 2Stops an element from being rendered until it is needed
- 3Stops CSS animations but leaves the element fully interactive
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.