HTML-tag to annotate the origin of a section?

懵懂的女人 提交于 2019-12-11 23:17:43

问题


Google don't like it when you use same content across multiple sites, according to some.

Is there any way to annotate/tag a block of content with the "source".

Something like an attribute:

<div original-content="http://some.url">

The purpose is solely to let Google that we have duplicated the content (I.e. not as part of a search ranking strategy). Search engines could then use this information somehow.


回答1:


This might help you out:

http://searchengineland.com/google-creates-metatags-to-help-id-original-news-sources-56115

Looks like the meta tag you want is

meta name=”original-source” content=”[url]”

However it looks like that is only for an entire page.




回答2:


Use the canonical tag, which tells the web engine crawler that the text is duplicated from the original website.

Example:

Place this in the header of your HTML page (in the duplicated content page)

<link rel="canonical" href="http://www.original-website.com" />

Reference: Canonical URL Tag - The Most Important Advancement in SEO Practices Since Sitemaps




回答3:


No, HTML has no such element or attribute.

If you quote the content (in a q or blockuote element), you could use the cite attribute. But you must not use these elements for anything other than quotes.

If the whole document is duplicated (or is a subset), you could use the canonical link type. But you must not use this if only part of the document is duplicated while the other parts are different.



来源:https://stackoverflow.com/questions/26740200/html-tag-to-annotate-the-origin-of-a-section

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!