搜索引擎优化友好标签

标签 seo google-search

<分区>

如何为选项卡显式添加元数据? 我有一些页面中有标签,可以打开 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>

最佳答案

W3C 指定<meta>标记只能位于 <head> 中HTML 的一部分,因此您不能将这些标签用于您的选项卡。但是,您可以使用 Sitemaps 对你来说可能是一个很好的解决方案。根据该网站,

Sitemap 0.90 is offered under the terms of the Attribution-ShareAlike Creative Commons License and has wide adoption, including support from Google, Yahoo!, and Microsoft.

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

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

您还可以使用微数据,如本 W3C Specification 中所指定的那样.根据规范:

When a string value is a URLs, it is expressed using the a element and its href attribute, the img element and its src attribute, or other elements that link to or embed external resources.

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

关于搜索引擎优化友好标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9373842/

相关文章:

php - 从乌尔都语 URL 生成 SEO 友好的 URL Slug

带有文章、章节和标题的 HTML5 布局

seo - 不同的图片导致谷歌排名下降

css - 谷歌搜索结果之一以奇怪的不同字体显示。为什么?

search - 我怎样才能最好地使这个 SEO_able?

search - 为什么我的 Google 搜索结果最终出现在我的索引页上?

xml - 使用 Google 表格进行批量图像搜索

html - 我应该在哪里放置产品架构微数据

http - 如何构造复杂的Google Web搜索查询?

php - 如何从谷歌获取引用搜索查询?