WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Underlined text on button

for

From: Emma Jane Hogbin
Date: Mar 26, 2002 10:35PM



> > <button type="submit"><span style="text-decoration:
> > underline">S</span>ubmit</button>

Another thing to try would be to use the first-letter pseudo class.

http://www.webreview.com/style/2000/07_28_00.shtml
http://www.w3.org/TR/REC-CSS2/selector.html

Of course it's not incredibly well supported, but it would allow you to
give the first letter a different formatting than the rest of the word. You
could then have something like:

<input type="button" name="blah" value="smurf" class="shortcut">

.shortcut:first-letter {
text-decoration: underline;
}

>Besides, underlining, even if succesful, is irrelevant to blind people.

Very true.

>The conclusion is that if you use accesskey attributes, the only way to
>ensure that all people who would benefit from them will be aware of them is
>to write explicit textual explanations.

If users are "in the know" about access keys will they look for them on a
site? How do access keys translate in an aural browser/screen reader? Are
they processed at all? The url posted here seems to suggest that screen
readers/aural browsers ignore the access key attribute. Anyone know for sure?

emma


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/