开发者

img tag inside a tag or giving background image to a tag which one is better

开发者 https://www.devze.com 2023-01-28 08:48 出处:网络
Considering SEO which开发者_Python百科 one is better. IMG tag inside a tag or giving background image to the a tag.

Considering SEO which开发者_Python百科 one is better. IMG tag inside a tag or giving background image to the a tag. Please suggest which one suits well for seo purpose.


If image is relevant to content

For SEO - keep image in HTML and give a relevant name to image and describe the image in alt attribute.

If image is purely decorative than keep in CSS.

Edit

And read this article to understand the proper use with link

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

0

精彩评论

暂无评论...
验证码 换一张
取 消