- 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.
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- 編程的修煉
- Oracle Exadata性能優(yōu)化
- Python Tools for Visual Studio
- Learn Swift by Building Applications
- PostgreSQL 11從入門到精通(視頻教學(xué)版)
- Flux Architecture
- INSTANT Passbook App Development for iOS How-to
- RISC-V體系結(jié)構(gòu)編程與實(shí)踐(第2版)
- 深入淺出Go語言編程
- Learning AWS
- JavaScript動(dòng)態(tài)網(wǎng)頁編程
- QGIS 2 Cookbook
- Bitcoin Essentials
- Getting Started with the Lazarus IDE