- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 170字
- 2021-07-08 10:04:00
Fixing AMP validation errors
To keep things simple, we'll use the developer console validator for most of this book because it works without having to install anything. This makes it the easiest approach to get started with.
If you haven't already activated the AMP validator, then do it now by adding the fragment #development=1 to the end of your URL and reload the page with the developer tools console open. Your URL will be something like this:
https://theampbook.com/ch2/news.amp.html#development=1
You should see a list of errors similar to those in the previous images. Each validation error includes three important pieces of information:
- The filename in which the error occurred
- The line number and character number of the error
- A description of the error
We can use this information to pinpoint in the AMP-HTML markup where the error occurred.
Although it looks like we have a lot of errors, most of these are related to the required boilerplate we saw in the last chapter, so we know how to fix them already.
- JBoss Weld CDI for Java Platform
- 自己動手寫搜索引擎
- Rake Task Management Essentials
- 數據結構簡明教程(第2版)微課版
- Windows Server 2012 Unified Remote Access Planning and Deployment
- TypeScript圖形渲染實戰:基于WebGL的3D架構與實現
- Hands-On Enterprise Automation with Python.
- 從0到1:Python數據分析
- PHP編程基礎與實例教程
- Java零基礎實戰
- 深入淺出Go語言編程
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Troubleshooting Citrix XenApp?
- NGUI for Unity
- Spring Data JPA從入門到精通