开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜