0

我开始知道我们可以使用 alt 标签来获得更好的 seo,但我对在我的图像中使用 alt 标签感到困惑。

我的意思是我们可以在 facebook-tips-tricks 之类的关键字之间使用 - 符号,还是应该只使用 facebook-tips 技巧。

我开始知道谷歌也会抓取图片,但我们如何才能有效地在博主帖子中的图片中实现。

4

1 回答 1

0

没有理由使用该-符号。您需要简单地放置备用。谷歌会做它的工作。

例子:

<html> 
  <body>
    <img src="http://theartmad.com/wp-content/uploads/2015/04/Smiley-Face-7.jpg" alt="Smiley face" height="42" width="42"><!-- Will normally show the image, since path is valid -->
    <img src="invalid path" alt="X" height="42" width="42"> <!-- Will show the alt, since there's no valid path. Will work without -'s. -->
    </body>
  </html>

正如评论中提到的,您可能想了解更多关于该alt属性的目的。你可以在这里这样做

于 2015-08-14T15:00:03.497 回答