Preview and validate your AMP page

  

 

 

 

 

 

However, not all businesses use WordPress, and plugins do have their limitations. So I’m going to walk you through the steps you can take to implement AMP technology into your content marketing strategy without a plugin.

Step #1: Create your AMP page template

The first step you’ll need to take to implement AMP for your blog posts and other high-quality content is to create an AMP page template from scratch. To create an AMP page template, you’ll need to start your AMP HTML page with <!doctype html> at the top of your page, and identify the page as AMP content by adding a lightning bolt symbol (?) in the HTML tag like this <html ?>.

Here’s an example of a simple AMP HTML page which you can use for your content:

 

These are the tags to include in your AMP HTML documents:

  1. <head> and <body> tags
  2. <meta charset=”utf-8”> as the first child of your <head> tag
  3. <script async src=”https://cdn.ampproject.org/v0.js”></script> inside your <head> tag to include and load the AMP JavaScript library
  4. <link rel=”canonical” href=”$SOME_URL”> inside your <head> tag
  5. <meta name=”viewport” content=”width=device-width,minimum-scale=1,initial-scale=1”> inside your <head> tag
  6. AMP boilerplate code in your <head> tag

These tags are those which you can change in the code of the pages themselves:

  • link href=”hello-world.html”
  • The content within the body section <body>Hello World!</body>

Now that you know how to create an AMP page template for your blog, you might want to learn about all of the HTML tags you can use for your AMP pages.

 

Unfortunately, there are some HTML tags that you can’t use for AMP pages. These include:

  • <frame>
  • <frameset>
  • <object>
  • <param>
  • <applet>
  • <embed>
  • <base>
  • <input elements>

 

To preview your AMP page, you’ll need to open country wise email marketing list  your page directly in your web browser from your file system, or use a local web server, such as Apache 2.

To make sure your AMP page is valid, on the other hand, all you have to do is open your page in your web browser, add “#development=1” to the URL, and then open the Chrome DevTools console to check for validation errors.

 

Image source

Bruce Day recommends testing one to two types of pages from your website on AMP first. Ideally, you should also include some pages that rank so you can see if Google is serving the AMP version in mobile search results.



It’s important to note that it could take a couple of days for Google to find, check, and index the AMP version of a page. As well, you should let the rollout run for at least a month (longer if you can afford to do so). This allows you to build enough data to ensure that rolling out AMP sitewide is worth it.

It can take a couple of days for Google to find, check, and index the AMP version of a page, and you should run your AMP pages for at least a month in order to gain meaningful data.

Comments

Popular posts from this blog

聊天机器人市场规模预计将达到 

It extends your ads’ reach and relevance

Increased website engagement