How to convert html content to amp html content

What is a Google Accelerated Mobile Page (AMP)?

An Accelerated Mobile Page (or AMP ) is a project to make really fast mobile pages designed by Google and Twitter . It's basically a stripped-down form of HTML,

  • a diet HTML.
  • super lightweight and critically designs really fast loading

 It’s like taking a page that’s already mobile friendly and making it load quicker, by stripping it down to basics.

Benefits of Accelerated Mobile Pages

i).   Insanely fast-loading web pages that users love

ii).   Increased mobile browser visibility for content marketers

iii).  Improved mobile search engine rankings

iv).  Flexible ad support

v).   User tracking made simple


Optimize Your Pages for AMP

A very simple Php code to convert you html content to amp html content. Just follow the below steps and you have your amp html content ready.

Step 1 : Just copy the code from below github repository and paste it on a new file and name it Amphelper.php

Step 2 : Now go to php file where you have to convert your html content , there include the AmpHelper file .

Step 3 : Now call $ampData = AmpHelper::replaceHtmlTagToCorresAmpTags($data ) , $data is a variable holding your html content

Step 4 : copy the code from by clicking HERE  this github repository

Frequently Asked Questions

Ans: Tranform your html content to amp html content Just simple steps to convert your html content to amp html content view more..

Recommended Posts:

    Rating - 3/5