Screen reader not reading this div:
<div tabindex="7" aria-label="Here be redundant or extraneous content" >
It should read "Here be redundant or extraneous content"
Any help how to solve this problem with HTML?
Screen reader not reading this div:
<div tabindex="7" aria-label="Here be redundant or extraneous content" >
It should read "Here be redundant or extraneous content"
Any help how to solve this problem with HTML?
A
div
is neither landmark nor interactive content. Anaria-label
will not be read by a screen reader (and rightly so).Use an off-screen technique:
The CSS might look like this (accounting for RTL languages too):
There are other techniques, but their value depends on your audience and its technology profile.
Further, never use a positive
tabindex
value. And never use adiv
as interactive content (which the tab-stop implies is your intent).In the future, your question might get more attention if you provide an example and description of the challenge you are trying to solve.