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

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
主站蜘蛛池模板: 穆棱市| 梅河口市| 永修县| 洪洞县| 元氏县| 沙湾县| 项城市| 阿坝| 屯昌县| 长阳| 林州市| 襄垣县| 贺州市| 西青区| 龙游县| 织金县| 涡阳县| 同仁县| 南皮县| 武冈市| 泾阳县| 固镇县| 宜章县| 阳江市| 肇庆市| 南木林县| 杭锦后旗| 梁平县| 湘西| 抚宁县| 银川市| 屏东县| 巧家县| 射洪县| 高密市| 怀远县| 靖宇县| 新竹市| 旺苍县| 阿克| 崇州市|