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

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.

主站蜘蛛池模板: 资阳市| 隆安县| 长顺县| 盐池县| 衡山县| 宁国市| 海晏县| 郧西县| 清徐县| 会理县| 伊金霍洛旗| 秭归县| 辽宁省| 平阴县| 和静县| 清徐县| 石柱| 商水县| 小金县| 榆林市| 古浪县| 陈巴尔虎旗| 临江市| 平原县| 云龙县| 金阳县| 米林县| 九龙城区| 通化县| 马边| 张掖市| 福建省| 新沂市| 无锡市| 中西区| 房产| 成安县| 耿马| 琼中| 卢氏县| 孟津县|