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 background image? My intuition is the latter - but just if there is a
slight chance..
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
.
- Original Message -
From: Kristine Cummins
To: wsg@webstandardsgroup.org
Sent: Monday, March 24, 2008 12:22 PM
Subject: [WSG] Apply ALT tag to background image?
I've got a background graphic designated in my style sheet - is there a way
to apply an alt and/or title tag
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