Coder
Coder

Reputation: 253

How to skip some content from screen reader

I want to skip some content from reading of screen reader. consider this html

<div id="test" aria-labelledby="test>
   ...
   <div aria-hidden="true">Dont read this content. This content will be loaded from javascript</div>
   ...
</div>

Though the aria-hidden=true is set for the div, the content is read by screen reader. Please help to skip this content

Upvotes: 3

Views: 6325

Answers (1)

Sanchez89
Sanchez89

Reputation: 74

Your code looks right, how are you testing this?

Not all browsers / screen readers will support this yet.

Try setting style="display:none;" as this may be more widely supported at the moment.

Upvotes: 2

Related Questions