Using role=status
to Provide Status Message on Search Results
This demonstrates how messages about search results are returned and surfaced using the aria status
role. After a user presses a Search button, the page content pretends to do a search for words that rhyme with "orange". None are returned, which results in a change to content, the message "0 results returned". This text is given an appropriate role for a status message. A screen reader should announce "Zero results returned".