简体   繁体   中英

Should aria-label's be capitalized?

I've seen some examples and documentation that capitalizes the first word of aria labels. Why is this? What if you have two words?

It doesn't matter if it's sentence case, camel case, or all lowercase. Most screen readers will say it the same. But don't make the label all caps because that can change the inflection of the screen reader voice and can cause some words to be read as separate characters. For example, "MY LABEL" could be potentially be pronunced as "em why el a be ee el".

I was using ChromeVox to test this behaviour and the screen reader in all the three cases is reading using the same pronunciation and in the same speed, ie for these examples:

  1. THIS IS MY TEXT
  2. This Is My Text
  3. this is my text

Haven't noticed any difference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM