Html SEO 标题 vs alt vs 文本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3895124/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 04:47:53  来源:igfitidea点击:

SEO title vs alt vs text

htmlseotitlealt

提问by medk

Does the title attribute in a link do the job of the real text in the link for SEO? i.e

链接中的标题属性是否可以完成 SEO 链接中的真实文本的工作?IE

<a href="..." title="Web Design">Web Design</a>

is it the same as:

是否与以下相同:

<a href="..." title="Web Design">click here</a>

when trying to get a good page rank for keywords like "web design"? is it like alt attribute in an image tag? or is it useless in SEO?

试图为“网页设计”等关键字获得良好的页面排名时?它像图像标签中的 alt 属性吗?或者它在 SEO 中没用?

is it the same as:

是否与以下相同:

<a href="..." alt="Web Design">click here</a>

what's the difference between all the above?

以上所有有什么区别?

Thank you in advance!

先感谢您!

回答by The Surrican

Alt is not a valid attribute for <a>elements.

Alt 不是<a>元素的有效属性。

  • Use alt to describe images
  • Use title to describe where the link is going.
  • The textvalue (click here) is the most important part The title attribute gets more and more ignored. Google looks far more on the link text than the title attribute. For google the title tag is like a meta tag which is not important compared to content.
  • Image alt tags are however still very important (especially for image search)
  • The main feature of those tags is to provide usability for your users, not to feed informatino to search engines.
  • 使用 alt 来描述图像
  • 使用标题来描述链接的去向。
  • textvalue(点击这里)是最重要的部分 title 属性越来越被忽略。与标题属性相比,Google 更关注链接文本。对于谷歌,标题标签就像一个元标签,与内容相比并不重要。
  • 然而,图像 alt 标签仍然非常重要(特别是对于图像搜索)
  • 这些标签的主要功能是为您的用户提供可用性,而不是向搜索引擎提供信息。

回答by Dave

title attribute hasn't the same value as link text on SEO.

title 属性与 SEO 上的链接文本的值不同。

between

之间

<a href="..." title="Web Design">Web Design</a>

and

<a href="..." title="Web Design">click here</a>

stick with the first option. But it is duplicate data, and has no real aggregate value on the case.

坚持第一个选项。但它是重复数据,对案例没有真正的聚合价值。

The main title purpose, it to give a tooltip about the link's page title. Putting the linked page title is the correct application (think on user first).

主要标题目的,它提供有关链接页面标题的工具提示。放置链接页面标题是正确的应用程序(首先考虑用户)。

The alt attribute is for allow non-textual content to be represented. Consider the examples on WHATWG: http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html#alt

alt 属性用于允许表示非文本内容。考虑 WHATWG 上的示例:http: //www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html#alt

EDIT

编辑

<a href="http://yoursite.com/posts.php?page=1" rel="prev">1</a>
<span>2</span>
<a href="http://yoursite.com/posts.php?page=3" rel="next">3</a>
...
<a href="http://yoursite.com/posts.php?page=27" rel="last">27</a>

回答by LDJ

The title tag should be used to provide ADDITIONAL information for an element such as a link. If your title tag duplicates the actual link text then it will have no SEO benefit (there are arguments that the duplication could have a slight negative effect too). If, however, you can provide additional, meaningful information on the link such as further details about the content linked (especially if it links to a filetype that Google wouldn't be able to access/index) then they're definitely worth having.

标题标签应用于为元素(如链接)提供附加信息。如果您的标题标签复制了实际的链接文本,那么它将没有 SEO 好处(有人认为复制也可能产生轻微的负面影响)。但是,如果您可以在链接上提供其他有意义的信息,例如有关链接内容的更多详细信息(特别是如果它链接到 Google 无法访问/索引的文件类型),那么它们绝对值得拥有。

Even as the tooltip in the browser, having a tooltip with the same text as the link text makes no sense, so as a rule of thumb only use it when you have something additional to add, not duplicate.

即使作为浏览器中的工具提示,使用与链接文本相同的文本的工具提示也是没有意义的,因此根据经验,仅当您要添加其他内容而不是重复时才使用它。

HTH

HTH

回答by Corina Savin

The text in the title attribute is not seen by crawlers. It won't cause keyword stuffing and it won't replace the anchor text for a given URL. It will, however, provide additional info if this is needed. Use it to help your visitors not your SEO efforts.

爬虫看不到 title 属性中的文本。它不会导致关键字填充,也不会替换给定 URL 的锚文本。但是,如果需要,它将提供其他信息。使用它来帮助您的访问者而不是您的 SEO 工作。

回答by BoltClock

altis only valid for images — it's alternate text that serves for screen readers and people with images turned off to understand what an image represents.

alt仅对图像有效——它是替代文本,供屏幕阅读器和关闭图像的人使用以了解图像代表的含义。

titleapplies to most (if not all) elements, and can be used to provide tooltips for more information about parts of your pages.

title适用于大多数(如果不是全部)元素,并且可用于提供工具提示以获取有关页面部分的更多信息。

I don't think either attribute plays any major roles in SEO. As Joe Hopfgartner says, the actual text of your links is much more significant in terms of semantics, which is why using "click here" as link text is discouraged these days.

我认为这两个属性在 SEO 中都没有任何主要作用。正如 Joe Hopfgartner 所说,链接的实际文本在语义方面更为重要,这就是为什么现在不鼓励使用“单击此处”作为链接文本的原因。

回答by CKaynak

Use this pseudo-code:

使用这个伪代码:

<a href="url" title="Title" ref="Ref" target="Target">Text</a>

For instance, this:

例如,这个:

<a href="http://example.com" title="Example" ref="external" target="_blank">Example</a> 

renders like this:

渲染成这样:

Example

例子