Accessibility · Middle · Question 15 of 75

Why doesn't injecting a new element with role="alert" always get announced?

Show the answer

Correct answer: Live regions are most reliable when they exist before changing

Explanation

Assistive tech has to register the region first. Keep an empty container in the DOM and update its text.

Further reading

Problem with a question

Accessibility · Middle · question 15

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