新的AMP HTML标记和搜索引擎索引

时间:2015-10-14 10:00:29

标签: indexing googlebot google-crawlers amp-html

AMP HTML附带了一些新的html标签,这些标签通过javascript转换为普通元素......例如

<div>
  <amp-img width=500 height=500 src="https://placekitten.com/g/500/500">
  </amp-img>
</div>

(文档中的示例)

但是谷歌机器人和其他搜索引擎如何将这样的图像编入索引?

Googlebot会将amp-img索引为普通图片吗?

其他人呢...... Bing,Yahoo,......?

或者对于图像索引,我们应该使用一些polyfill,如:

<div>
  <amp-img width=500 height=500 src="https://placekitten.com/g/500/500">
  </amp-img>
  <noscript>
    <img width=500 height=500 src="https://placekitten.com/g/500/500">
  </noscript>
</div>

<div>
  <amp-img width=500 height=500 src="https://placekitten.com/g/500/500">
    <noscript>
        <img width=500 height=500 src="https://placekitten.com/g/500/500">
    </noscript>
  </amp-img>
</div>

我在文档中找不到任何相关内容。

1 个答案:

答案 0 :(得分:1)

我认为你不会在文档中(或其他任何地方)找到明确的答案,所以我会给你最好的猜测。根据{{​​3}} a few,AMP HTML不会影响搜索结果(对我而言,这意味着这些网页的索引方式与非AMP网页相同)。

此外,amp-img标记的sources表示它是“运行时管理的HTML img标记的替代品”,并且它将具有与常规{{1}类似的属性标记(包括img属性,如果不是本机支持,则行为将被填充。根据这些信息,我认为srcset和其他替换标记的索引方式与常规标记的索引方式相同。

相关问题