You could, if you wanted, create a div that is the same size as the image, and set the div's background property:
Code:
div#myimage
{
background: url(/images/myimage.png);
}
However, you could just use an <img> element with and empty alt attribute:
Code:
<img src="/images/myimage.png" alt="" />
In terms of markup, using an image with an empty alt attribute means "There is an image there, but it has no meaning in context", whereas using a background image means "There's no image, it's just a div, which is meaningless".
Bookmarks