Just as an addon to that, the alt attribute is supposed to be describing 
the embedded image for those who can't view it.  This is assuming that 
the image in question actually has something to do with the content of 
the site to begin with; if it's a CSS background image, odds are it's 
either being placed behind or near text that covers what it is about, or 
it's part of the site design and doesn't actually need to be described 
to someone who can't view images.

Also, though this is off-topic, you do know you can attach title to 
anything, right?

Cem Meric wrote:

>>In html you define the alt/title attributes in the page markup.  How
>>would you do the same in a CSS stylesheet for a background or other
>>image?  Should you?
>>
>>-Bob
>>    
>>
>
>Interesting question Bob. Short answer; you shouldn't, or even if you could
>you wouldn't. 
>
>Search engines ignore CSS files. Even if they start indexing them, it would
>be a labour intensive code disaster. Image trying to define alt/title
>attributes for your "catchy header slogan" background with your top
>two/three keywords in mind. And, let's say you have a small web site around
>50 pages where you have to nominate different keywords for every page in
>order to maximise your SEO outcome. See where I am getting? This would be
>against the core principles of CSS which I believe to generate more with
>less code in size. 
>  
>
-- 
http://www.mozilla.org/products/firefox/ - Get Firefox!
http://www.mozilla.org/products/thunderbird/ - Reclaim Your Inbox!

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to