Method 1:
Traditionally I would include an image like this:
<img src="image.png" alt="image" />
And the alt attribute
would be in their for 2 reasons:
- Help Visitors with an image
- SEO purposes. So bots and crawlers know what an image is, i.e. keywords.
Method 2:
However, if I was to include the image via a css style sheet:
HTML
<div class="image"></div>
CSS
.image {
background-image: url(images/products_partitioning.png);
}
Is there anyway to include the alt attribute via as seen in 'method 1', in 'method 2' for SEO purposes.