- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 266字
- 2021-07-08 10:04:05
Canonical AMP pages
Canonical AMP pages are standalone AMP pages. That is, they serve as both the desktop and the mobile web page. AMP has good media query support, as well as strong responsive layout features, and so AMP isn't mobile-only, rather it's mobile first: It is optimized for mobile, but can be expanded to other device types too. The canonical approach is being promoted by the AMP team, and reflects how much AMP has changed and grown beyond it's original purpose.
To support this, the AMP project runs a dedicated site, AMP Start (ampstart.com), that publishes a set of free-to-use-and-modify canonical AMP page templates, along with pre-built, reusable AMP UI components. These components include styled buttons, input types, annotated hero images, carousels, navigation elements, footers, and many other useful UI components:

It's a good place to start if you're looking for prebuilt, ready-to-use templates and components that you can get up and running quickly. Of course, you're reading this book because you want to learn how to build AMP pages yourself, so we won't go into any more detail about AMP Start here.
With canonical AMP pages, you still need to provide a canonical link in the document head, but it will point to itself:
<link rel="canonical" />
Note that when building canonical web pages that are intended to be viewed on desktops as well as mobile devices, responsive design techniques become very useful in ensuring that the page scales well on larger screens. We'll see some of these techniques in action in the next few sections of this chapter.
- JavaScript 網(wǎng)頁編程從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開發(fā)視頻大講堂)
- Functional Kotlin
- Visual FoxPro程序設(shè)計(jì)
- 焊接機(jī)器人系統(tǒng)操作、編程與維護(hù)
- 零基礎(chǔ)Java學(xué)習(xí)筆記
- Mastering C++ Multithreading
- Flowable流程引擎實(shí)戰(zhàn)
- C語言程序設(shè)計(jì)實(shí)訓(xùn)教程與水平考試指導(dǎo)
- 從零開始學(xué)Android開發(fā)
- INSTANT Apache ServiceMix How-to
- AMP:Building Accelerated Mobile Pages
- Java程序設(shè)計(jì)教程
- HTML5 WebSocket權(quán)威指南
- Android應(yīng)用開發(fā)攻略
- The Applied Data Science Workshop