On many bootstart sites, I see the following code to insert an icon:
& lt; i class = "glyphicon glyphicon-plus" aria-hidden = "true" & gt; & lt; / i & gt;
Why is this aria-hidden hint needed?
Is this a good practice, or is it bad or wrong?
I usually don’t like to paste in code that I don’t understand, so I clear out
aria-hidden . But maybe I’m wrong and it’s time to deal with this issue.
I looked for information on the net, but what I found was even more confusing.
It seems that this tag somehow helps visually impaired users navigate the page, but how exactly – I do not understand.
Please help clarify the issue.
Answer 1, authority 100%
aria attributes are needed for people with disabilities as well as for reading mode. In your case,
aria-hidden means that the element is optional to show. The practice is undeniably good.