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

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
主站蜘蛛池模板: 郓城县| 台州市| 湖州市| 平果县| 临桂县| 五原县| 丹巴县| 江陵县| 仙游县| 顺昌县| 万盛区| 衡阳县| 天柱县| 普定县| 曲阳县| 两当县| 稻城县| 涟源市| 宿松县| 大悟县| 四子王旗| 周宁县| 宜君县| 荆门市| 元江| 遂昌县| 白玉县| 施秉县| 周至县| 酉阳| 隆尧县| 将乐县| 莒南县| 铜陵市| 平南县| 青神县| 永仁县| 吕梁市| 应用必备| 开远市| 芮城县|