The Content inside the Aria-Label Is for Humans
You do not write the following:
<nav aria-label="primary-navigation">
<!-- a list of internal links -->
</nav>
Do not do that. The value of the aria-label is for humans. Instead, write the following:
<nav aria-label="Primary">
<!-- a list of internal links -->
</nav>
Explanations:
- Remove the "-navigation" because the
<nav>element already has the semantic meaning as the navigation landmark. - No code is written there. This means we do not want screen readers or other assistive technologies to say something like, "primary dash navigation, navigation landmark." We want those tools to say, "primary, navigation landmark."
Topic(s).
Thank you for reading this The Content inside the Aria-Label Is for Humans. You can subscribe to all my articles with the Articles RSS. If you have a positive or negative comment, please send me an email or contact me through one of my social media accounts.
Share with your network
Copy this link and send it to great people only.
https://vanzasetia.xyz/blog/aria-label-human/
For you
Passion Is Not Enough to Be Better
I do not understand how people on the internet can claim that they are successful because they love what they do. Really? I get a feeling that their passion is not the true source of their success.
By Vanza Setia
A. C. Grayling Has a Funny Logic That God Makes Humans Commit Sins
Everybody likes entertainment. But we are going to laugh and learn together from someone who writes a very thick book but has a low IQ.
By Vanza Setia