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

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.

主站蜘蛛池模板: 龙口市| 青川县| 东乌| 五莲县| 乐昌市| 连南| 西盟| 平山县| 金昌市| 阿坝县| 南雄市| 樟树市| 靖宇县| 高清| 安塞县| 南部县| 江阴市| 离岛区| 清涧县| 酒泉市| 扎鲁特旗| 德保县| 太仓市| 石泉县| 遂昌县| 称多县| 安丘市| 疏勒县| 新安县| 乌鲁木齐市| 平度市| 灵川县| 诸暨市| 城固县| 大渡口区| 延寿县| 昌平区| 涟源市| 合水县| 新和县| 海城市|