- 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.
- JavaScript百煉成仙
- R語言經典實例(原書第2版)
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- 軟件架構:Python語言實現
- MySQL從入門到精通(軟件開發視頻大講堂)
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- Mastering Data Mining with Python:Find patterns hidden in your data
- OpenCV with Python By Example
- Java 9 with JShell
- Mastering JavaScript
- AutoCAD基礎教程
- 虛擬現實建模與編程(SketchUp+OSG開發技術)
- 詩意的邊緣
- Drools 8規則引擎:核心技術與實踐