Validating html file

16-Nov-2014 16:19 by 5 Comments

Validating html file

The AMP Validator can be accessed directly from your browser's toolbar using a browser extension.

To install the AMP HTML validator command line tool, type The format of the error messages consists of file name, line, column, and message, often followed by a link to the AMP HTML reference.Some editors, including Emacs (look for compile command and compilation mode), can interpret this format and let you jump to the errors in the original file.For a good starting point to make your own AMP page consider minimum_valid_amp.html: The command line tool offers additional features including switching off the color, printing JSON output, or running a specific version of the validator Javascript (by default it runs the latest published script).The AMP Validator isn’t just a convenience for you during development. This way, third parties such as Twitter, Instagram or Google Search can feel great about serving AMP pages to readers in increasingly interesting ways.There are several ways available to validate an AMP document.

They will all produce the exact same result, so use whichever one suits your development style the most.

In addition to AMP validity, you may also want to confirm that your AMP document is discoverable to third-party platforms.

The AMP Validator comes bundled with the AMP JS library, so it is available on every AMP page out of the box.

To validate: The AMP Validator can be used as a web interface at validator.

This interface shows errors displayed inline alongside the HTML source of the page.

The interface is an interactive editor: changes to the html source result in interactive revalidation.