- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 157字
- 2021-07-08 10:03:59
Developer tools console
The browser developer console is probably the easiest way to start validating your pages. Since the validator is included in the AMP-JS library, you can validate every page out of the box. To validate an AMP page, open the page in your browser, and add #development=1 to the URL. Your URL will look something like this:
https://theampbook.com/ch2/news.amp.html#development=1
Or, if you're working locally, then your URL will look something like this:
http://localhost/news.amp.html#development=1
Now, with the developer console open, reload the page. You should see some validator output in the console that looks like this:

Ouch! Look at all those red error messages. Each one is telling us about some issue with the AMP page. To get all the benefits of AMP, we will need to address each of these errors to fix our page so that it validates. This will become an important part of your AMP workflow.
- Mastering OpenLayers 3
- DBA攻堅指南:左手Oracle,右手MySQL
- 案例式C語言程序設計
- Microsoft Dynamics 365 Extensions Cookbook
- Mastering Natural Language Processing with Python
- C和C++安全編碼(原書第2版)
- Building a Recommendation Engine with Scala
- Instant QlikView 11 Application Development
- Java系統(tǒng)化項目開發(fā)教程
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術
- HTML5+CSS3+jQuery Mobile APP與移動網(wǎng)站設計從入門到精通
- Angular應用程序開發(fā)指南
- Drupal 8 Development:Beginner's Guide(Second Edition)
- JavaScript Unit Testing
- Building Apple Watch Projects