Home html How Aria-hidden works

How Aria-hidden works

Author

Date

Category

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%

Generally the 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.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions