No, there is no way to apply ALT to the background images, only for IMG tags.
Max.
2008/3/24, Kristine Cummins [EMAIL PROTECTED]:
I've got a background graphic designated in my style sheet – is there a way
to apply an alt and/or title tag to that or would I need to just not make it
a
You can only apply the alt attribute to img elements. If you need to provide
an alt attribute to a CSS background image then the background image should
instead be an img element.
Use the img element for images related to the content and keep all images
related to layout in your CSS.
-
Kristine Cummins skrev:
I’ve got a background graphic designated in my style sheet
Backgrounds are decorative and do not need alt *attributes*. Therefore
CSS does not have a way of providing alternate text.
If it is part of the content and should be seen by search engine bots
and screen
You can only apply the alt attribute to img elements.
13.8 How to specify alternate text [1]
The alt attribute must be specified for the IMG and AREA elements. It is
optional for the INPUT and APPLET elements.
http://www.w3.org/TR/html401/struct/objects.html#h-13.8
--
Regards,
Thierry |
Hi,
If it's a CSS background image then it's not content and doesn't have an
alt attribute.
(The non-preferred alternative is to to put it in an img tag with alt=)
If it IS content, it should be in an image tag rather than CSS background
image, with the alt attribute describing the content of