Do you build things with AMP? Fill out the new AMP Developer Survey!

Validating your AMP HTML

Because web stories are built with AMP, you should always validate that your AMP HTML is correct. There are several methods that you can use to validate AMP pages. In this tutorial, we'll enable the AMP Validator by turning on the developer mode. To turn on the developer mode, add the following fragment identifier to your URL and reload the page:


For example:


Open the Developer Console in Chrome (or your preferred browser), and verify there are no AMP errors. You might need to refresh your browser to see validation messages. If your page is free of errors, you should see the message:

 AMP validation successful.