WebSite X5Help Center

 
Dima Kornevich
Dima Kornevich
User

AMP  ru

Auteur : Dima Kornevich
Visité 922, Followers 1, Partagé 0  

Как создать страницу c технологией AMP ??

Вот описание:  https://www.ampproject.org/ru/docs/tutorials/create/basic_markup

Вот код для создания AMP пробной страницы

!doctype html><htmlamplang="en"><head><metacharset="utf-8"><title>Hello, AMPs</title><linkrel="canonical"href="http://example.ampproject.org/article-metadata.html"><metaname="viewport"content="width=device-width,minimum-scale=1,initial-scale=1"><scripttype="application/ld+json">{"@context":"http://schema.org","@type":"NewsArticle","headline":"Open-source framework for publishing content","datePublished":"2015-10-07T12:02:41Z","image":["logo.jpg"]}</script><styleamp-boilerplate>body{-webkit-animation:-amp-start8ssteps(1,end)0s1normalboth;-moz-animation:-amp-start8ssteps(1,end)0s1normalboth;-ms-animation:-amp-start8ssteps(1,end)0s1normalboth;animation:-amp-start8ssteps(1,end)0s1normalboth}@-webkit-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes-amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><styleamp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript><scriptasyncsrc="https://cdn.ampproject.org/v0.js"></script></head><body><h1>Welcome to the mobile web</h1></body></html>

Posté le
1 RéPONSES