img Or background-image?

How do you decide whether an image should be included as a img element or a background image? As Chris Heilmann explains, if the image is content, it better be part of the markup with img and alternative text. With background images, you have to ensure something else – that a corresponding background colour is seen when images are disabled, otherwise the site is rendered unreadable.

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.



Abhijit Nadgouda
iface Consulting
+91 9819820312
My bookmarks


This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.