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

Building Your First AMP Page

In this chapter, we're going to build on the boilerplate code from the previous chapter. We'll see how to build a simple news article page, while highlighting similarities and differences between AMP-HTML and regular HTML.

We'll also learn about AMP validation. Validation is a key step in the AMP development workflow. We'll see what happens when you use HTML tags that aren't permitted and we'll learn how to develop and debug AMP pages, making use of the AMP validator and browser developer console as indispensable tools. What AMP takes with one hand in restricting HTML tags, it gives with the other, in providing custom elements. We'll see how custom elements can be used in your AMP pages to add functionality otherwise unavailable.

So, in this chapter we'll be covering:

  • How to develop pages in AMP, and how to convert a non-AMP HTML page to AMP-HTML
  • Restricted HTML tags in AMP
  • How to validate and debug your AMP pages
  • What AMP custom elements are
  • How to use amp-img
  • How to measure web page performance
主站蜘蛛池模板: 海伦市| 弋阳县| 鄄城县| 临邑县| 吉隆县| 永济市| 宝山区| 上犹县| 河南省| 衢州市| 南昌县| 通海县| 平果县| 平顶山市| 平果县| 永春县| 修武县| 深水埗区| 宁阳县| 平遥县| 镇安县| 会理县| 钟山县| 新巴尔虎左旗| 衡东县| 兰溪市| 丰镇市| 崇信县| 巴东县| 乌苏市| 乐陵市| 曲水县| 奉节县| 巴里| 铜鼓县| 玉龙| 桂林市| 高台县| 凌海市| 依安县| 招远市|