WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: alt text and captions

for

From: Dierickx, Len
Date: Feb 10, 2004 7:11AM


Dear,

Most of the attributes can be shown with CSS2 in Opera, like alt attributes
for images but access keys as well.
Title attributes for abbreviations even the language in HTML tag.
Opera provides a user stylesheet where these options are used. (User mode >
Accessibility lay-out).

>The *content* isn't in the CSS; it's in the HTML as an attribute of the
image.
This is true for the img example but CSS2 provides a possibility to add text
using rules in the stylesheet like this:

A:after{content:" Provide a meaningful title.";}

The content is in the CSS file.
This can be useful but I would prefer that the content remains in the HTML
file because stylesheets can be disabled.
That way the content would never reach the HTML file and would not be
accessible for text browsers.

I use both techniques, revealing attributes and adding content via the
stylesheet, for showing accessibility problems with a webpage. I created a
testing style sheet with these CSS2 and CSS3 possibilities.
You can find it at http://www.none.be/css/myAccessibility.css
It shows several Alt and Title attributes, testing for nested tables and
several other things.
Please note that this will only work with Opera7 or Mozilla1.6.
If you don't know how to add a userstylesheet, check out the css-wicki page
about Opera userstylesheets.
http://css-discuss.incutio.com/?page=OperaUserStylesheets

--
Kind regards,
Len Dierickx
http://www.none.be