页面如何告知浏览器AMP HTML版本存在? [英] How can a page tell browsers that an AMP HTML version exists?
本文介绍了页面如何告知浏览器AMP HTML版本存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我将有两页,AMP页和普通页. AMP版本与常规版本之间有规范的联系,但是常规版本如何指定有可用的AMP版本?
I understand I will have two pages, the AMP one and the regular one. The AMP one has a canonical link to the regular one, but how does the regular one specify that there is a AMP version available?
推荐答案
The AMP document discovery documentation specifies that you need to add this tag in the <head>
:
<link rel="amphtml" href="...">
例如,如果您查看已经支持AMP的发布者的页面,例如 http://www.bbc.co.uk/news/world-europe-34471849 ,您可以在<head>
中看到该标签:
As an example, if you take a look at a page from a publisher that already supports AMP, such as http://www.bbc.co.uk/news/world-europe-34471849, you can see this tag in the <head>
:
<link rel="amphtml" href="http://www.bbc.co.uk/news/amp/34471849">
这篇关于页面如何告知浏览器AMP HTML版本存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文