Search code examples
amp-html

How to reference an AMP HTML page in a normal HTML page


How do I link to an AMP HTML page in a normal HTML page.

The example on GitHub specifies a canonical page which I guess refers to the "normal" HTML page. https://github.com/ampproject/amphtml#how-does-amp-html-work

<link rel="canonical" href="hello-world.html" >

But how does the "normal" page link to the AMP HTML page ?


Solution

  • according to niemanlab.org it’s done like this:

    <link rel="amphtml" href="hello-its-an-amp-page.html">