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

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.

主站蜘蛛池模板: 岳池县| 财经| 定西市| 长岭县| 文水县| 正镶白旗| 会东县| 松江区| 黄龙县| 伊宁市| 交城县| 阜平县| 吉安县| 五指山市| 广汉市| 吉安县| 通榆县| 沧州市| 彭山县| 当阳市| 灵台县| 锡林郭勒盟| 固原市| 乐清市| 石楼县| 蒙城县| 信阳市| 安阳市| 连城县| 信阳市| 安阳市| 兴仁县| 武定县| 中卫市| 遵义县| 河南省| 兴仁县| 时尚| 宝坻区| 社旗县| 金华市|