官术网_书友最值得收藏!

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:

AMP validation errors in browser developer console

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.

主站蜘蛛池模板: 红原县| 平乐县| 墨竹工卡县| 吉林市| 阳信县| 营山县| 广宗县| 茂名市| 怀仁县| 木兰县| 普安县| 芜湖县| 保康县| 娄底市| 天津市| 左权县| 华亭县| 鹤峰县| 遂溪县| 崇明县| 攀枝花市| 体育| 肃北| 丁青县| 昆明市| 莆田市| 吉木乃县| 巴彦淖尔市| 保定市| 资阳市| 和林格尔县| 申扎县| 油尖旺区| 长泰县| 千阳县| 长子县| 梁河县| 江达县| 防城港市| 武清区| 连平县|