In HTML, how can I have text that is only accessible for screen readers (i.e. for blind people)?
问题 I have a website that has colored divs with numbers, e.g. a red block with the number 2 inside of it. The color is important to understanding. A blind user emailed me asking if I could make it say "2 red" for his screen reader. I tried adding this as an alt="2 red" but he said that didn't do anything. He thinks it might only read alt tags for images. Is there a good way to do this for divs? 回答1: As far as alt text, you are correct, that only works for images.. But you can use aria-label in