Img in tag or gives background image to tag which is better

Considering SEO, which is better. IMG tag inside the tag or providing a background image to the tag. Indicate which one is suitable for seo purposes.

+3
source share
1 answer

If the image is related to content

For SEO - save the image in HTMLand specify the appropriate name for the image and describe the image in the attribute alt.

If the image is purely decorative than in CSS.

Edit

And read this article to understand proper use with reference

http://webaim.org/blog/alt-text-and-linked-images/

+4
source

Source: https://habr.com/ru/post/1778259/


All Articles