[HTML 5] aria-hidden


You want to use aria-hidden to prevent screen reader to access some content should be hidden from users.

For example, slides, you want to remove previous and next slides from the accessbility tree, so that it won't confuse the users who uses screen reader.

 

TOP-LEFT: aria-hidden need a value, without a value is invalid.

TOP-RIGHT: Element is hidden, so no label

BOTTOM-LEFT: aria label can refer to a hidden element

BOTTOM-RIGHT: inner element works as a label


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM