At the moment I'm using div's and 'background-image' in css to put in my images. However, how do I use these to my advantage regarding SEO? I used to use alt-tags a lot as part of my SEO strategy. How do you do this with div's. Or do you recommend just using img src in relevant parts?
At the moment I'm using div's and 'background-image' in css to put in my images.
Do that for background images. Don't do that for content images.
However, how do I use these to my advantage regarding SEO?
Write (accessible) content for people. Trust search engines to find it.
I used to use alt-tags a lot as part of my SEO strategy.
Hopefully they are good alt texts (and hopefully you mean attributes, not tags).
Or do you guys recommend just using img src in relevant parts?
Content images should use <img>
elements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With