--- On Tue, 4/14/09, Brian Hazelton <bdh_2...@comcast.net> wrote:

> When should I use an image and when should i use it as a
> background image.

Semantically (and generally) speaking, it's recommended that you use an <img> 
element if the image is actually part of the content (e.g. you're displaying a 
bunch of photos, maybe with comments) and a background image if it's 
'decoration', such as a border. Of course, this can be subjective and the 
distinction gets somewhat blurry - a logo, for example, is not as obviously 
classified as the previous two examples. You may also find various benefits of 
one or the other for styling purposes, but you should try and avoid breaking 
the general rule if possible.

- Bobby
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to