Upgrade Blog with Google’s (AMP HTML) Accelerated Mobile Pages.

Up Your Blog Site with Google’s Accelerated Mobile Pages(AMP HTML)

AMP HTML
You know about Accelerated Mobile Pages? Google launched the new project namely AMP HTML. The main work of AMP HTML is that webmasters could design web pages loading quickly it minimizes the use of JavaScript, CSS and HTML the structure of AMP HTML given below copy it and paste it in .html extension .

<!doctype html>
<html amp lang="en">
  <head>
    <meta charset="utf-8">
    <title>Hello, AMPs</title>
    <link rel="canonical" href="http://example.ampproject.org/article-metadata.html" />
    <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
    <script type="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>
    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-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><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
    <script async src="https://cdn.ampproject.org/v0.js"></script>
  </head>
  <body>
    <h1>Welcome to the mobile web</h1>
  </body>
</html>

AMPHTML is mainly works for Mobile Web users.For fast rendering, we must use the AMP JavaScript Library that will render the page and displays video, images, iframes and others with asynchronous.

The AMP structure start with <!doctype html> and contain very useful Tags and meta tags like

1) <meta charset="utf-8"> : UTF-8 is a character encoding capable of encoding all possible characters, or code points.

2)<meta name="viewport" content="width=device-width,minimum-scale=1"> : The viewport meta tag varies with the device, and will be smaller on a mobile phone than on a computer screen.

3) <script async src="https://cdn.ampproject.org/v0.js"></script> : This includes loads and java script library which provide you custom tags and fast rendering of your page.

Important:


1 Comments

  1. Us from Cooper Webdesign are very exited about AMP and think it will be great when all the remaining bugs have been fixed, so mobile users will have an advantage of receiving the content instantly.

    At this point we are running tests with to different pages regarding Google AMP. https://www.cooper.dk/amp/tveast-amp.html and https://www.cooper.dk/amp/helbredsprofilen-amp.html

    ReplyDelete
Previous Post Next Post