October 2017
Intermediate to advanced
370 pages
8h 57m
English
If you have Node.js installed on your machine, you can use the command line validation tool to validate both local and remote files. An advantage of this tool is that it can be included in your workflow and deployment process to automatically validate pages, and alert you when unexpected validation failures occur. A process like this will help to ensure that you don't accidentally deploy invalid pages and lose AMP badges and positioning in AMP search results carousels.
You can install the command line validator with the following command:
npm install -g amphtml-validator
To validate a page, use:
amphtml-validator https://theampbook.com
If it validates you will see:
https://theampbook.com: PASS
If there are any validation ...
Read now
Unlock full access