Reputation Activity
-
Spipmalion reacted to Nillervision in img tag or background-image?It's really all about semantics:
If the image should be considered as content use the image tag. (The image can be indexed by search engines and have descriptive attributes.)
If the image is a decorative style element or a part of the UI design the CSS background property might be more appropriate.
-
Spipmalion reacted to Lm. in img tag or background-image?I would second this. It really depends on the site as certain aspects might call for a background image rather than a img.