【问题标题】:SEO Friendly Tabs [closed]SEO友好标签[关闭]
【发布时间】:2012-02-21 07:41:11
【问题描述】:

如何为标签显式添加元数据? 我有一些页面中有标签,它们打开类型为 www.blahblah.com/page#tab1 的 URL 如何添加与 tab1 tab2 等相关的元数据。我不想在父页面中添加它。

编辑:Reference

<div itemscope itemtype="http://data-vocabulary.org/Person">
   My name is <span itemprop="name">Bob Smith</span>, 
   but people call me <span itemprop="nickname">Smithy</span>.
   Here is my homepage: 
// Does this URL Come up in Search as primary Link ? If so I can set it to 
mysite.com/page#tab1 
   ##<a href="http://www.example.com" itemprop="url">www.example.com</a>.##
   I live in 
   <span itemprop="address" itemscope
      itemtype="http://data-vocabulary.org/Address">
      <span itemprop="locality">Albuquerque</span>, 
      <span itemprop="region">NM</span> 
   </span>
   and work as an <span itemprop="title">engineer</span>
   at <span itemprop="affiliation">ACME Corp</span>.
</div>

【问题讨论】:

  • 如果您的所有标签内容都已加载到页面上,而其他页面只是隐藏了,您最好给每个标签一个好的标题,然后将所有标签视为一个长文档不同的部分。

标签: seo google-search


【解决方案1】:

根据W3C 的规定,&lt;meta&gt;标签只能位于 HTML 的 &lt;head&gt; 部分,因此您不能将这些标签用于标签。但是,您可以使用Sitemaps 对你来说可能是一个很好的解决方案。据该网站称,

Sitemap 0.90 是根据 Attribution-ShareAlike Creative Commons License 条款提供的,并已被广泛采用,包括来自 Google、Yahoo! 和 Microsoft 的支持。

您可以使用 XML 格式的this site 生成站点的站点地图,手动添加选项卡,然后将其直接提交到不同的搜索引擎或将其添加到您的 robots.txt 文件中,如下所示:

Sitemap: http://example.com/sitemap_location.xml

您还可以使用W3C Specification 中指定的微数据。根据规范:

当字符串值是一个 URL 时,它使用 a 元素表示,并且 它的 href 属性、img 元素及其 src 属性或其他 链接或嵌入外部资源的元素。

因此,即使您的 URL 包含片段(# 部分),不同的搜索引擎也应该指向正确的选项卡。例如,谷歌添加了一个“跳转到”链接。看到这个old blog post

【讨论】:

  • 好的,但我正在尝试另一种方法,编辑了我的问题,请检查是否可以完成
  • 根据您的问题编辑编辑了我的答案。
  • 感谢博客提到跳转到链接,这可能是我正在寻找的,但找不到任何关于 hwo 的文档来获得结果,我得到的只是你需要带有名称的旧式锚标签和具有该名称的 div id ,vincesamios.com/internetmarketing/… googlewebmastercentral.blogspot.in/2009/09/…
【解决方案2】:

编辑:https://developers.google.com/webmasters/ajax-crawling/docs/specification 这说明了一切。 总结文章。对于所有 Ajax 回调服务器端页面也应该实现

Request

The crawler agrees to request from the server ugly URLs of the format:

domain[:port]/path?_escaped_fragment_=hashfragment
domain[:port]/path?queryparams&_escaped_fragment_=hashfragment
domain[:port]/path?_escaped_fragment_=
domain[:port]/path?queryparams&_escaped_fragment_=
Search result

The search engine agrees to display in the search results the corresponding pretty URLs:

domain[:port]/path#!hashfragment
domain[:port]/path?queryparams#!hashfragment
domain[:port]/path
domain[:port]/path?queryparams

【讨论】:

    猜你喜欢
    • 2011-04-02
    • 1970-01-01
    • 1970-01-01
    • 2016-01-18
    • 2011-07-22
    • 2014-07-09
    • 2014-03-25
    • 2012-03-03
    • 1970-01-01
    相关资源
    最近更新 更多