I have a div like this:
<div class="whatever">17:03</div>
And when someone using a screen reader hovers over that text, I'd like it to read "17 minutes and 3 seconds"
What's the standard practice for doing this?
I have a div like this:
<div class="whatever">17:03</div>
And when someone using a screen reader hovers over that text, I'd like it to read "17 minutes and 3 seconds"
What's the standard practice for doing this?
You can include some additional text for screenreader only:
and CSS (taken from Bootstrap 3)
I ended up just making the English text the Aria Label, as this div was inside of an tag, so it's information ended up being read by the screenreader when it was in the aria label, without creating any extra tab targets.