Do you build things with AMP? Fill out the AMP Developer Survey!


使用 AMP 轻松制作用户为本的网站

  side="right"" ""left"



AMP is a simple and robust format to ensure your website is fast, user-first, and makes money. AMP provides long-term success for your web strategy with distribution across popular platforms and reduced operating and development costs.

<amp-img class="resp-img"
<style amp-custom>
  .resp-img {
    max-width: 700px;


AMP enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms. Publishers and advertisers can decide how to present their content that emphasizes a user-first experience.

保持您代码的灵活性和控制力,减少您代码的复杂性 You can use CSS to customize your styling and dynamic data to fetch the freshest data where needed.
确保性能的构件 It takes a lot of time and effort to build a great website. AMP components are already optimized for the best performance.
在所有人的开放网络中搭建一个可持续发展的未来 The AMP Project is an open source initiative to protect the future of the web by delivering a better, faster and more user-friendly experience.
Web page speed improves the user experience and core business metrics AMP 页面即时加载 - 跨越全设备全平台。
Building AMP pages is easy 您通常可以几天内转换完整个存档 - 特别是当使用常见的 CMS (例如 Wordpress 或 Drupal )时。
AMP 可以被应用于各种 Web 接触点 Used by global platforms like Google, Bing and Twitter, AMP allows users a native-feeling experience across all platforms by defaulting to AMP pages when available.

We are committed to improving speed across the board. If our site takes a long time to load, it doesn’t matter how great our journalism is, some people will leave the page before they see what’s there.

David Merrell, 资深产品经理


AMP HTML 由什么组成

<html >
  <meta charset="utf-8">
  <link rel="canonical" href="hello-world.html">
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
  <script async src=""></script>
  <script async custom-element="amp-geo" src=""></script>
  <script async custom-element="amp-bind" src=""></script>
  <amp-geo layout="nodisplay">
    <script type="application/json">
        "AmpBind": true
  <h1>Hello in <span [text]="country">...</span>!</h1>
  <button on="tap:AMP.setState({'country': ampGeo.ISOCountry.toUpperCase()})">Where am I?</button>



AMP HTML 是有一些限制的性能可靠的 HTML 。

Though most tags in an AMP HTML page are regular HTML tags, some HTML tags are replaced with AMP-specific tags (see also HTML Tags in the AMP spec). These custom elements, called AMP HTML components, make common patterns easy to implement in a performant way.

For example, the amp-img tag provides full srcset support even in browsers that don’t support it yet. Learn how to create your first AMP HTML page.

AMP pages are discovered by search engines and other platforms through the HTML tag. You can choose to have a non-AMP version and an AMP version of your page, or just an AMP version.

AMP Caches

AMP pages can be cached for near instantaneous loading on the web. Platforms like Google run AMP caches to enable fast loading of your content from their service.

The Google AMP Cache is a proxy-based content delivery network for delivering all valid AMP documents. It fetches AMP HTML pages, caches them, and improves page performance automatically. When using the Google AMP Cache, the document, all JS files and all images load from the same origin that is using HTTP 2.0 for maximum efficiency.
The cache also comes with a built-in validation system which confirms that the page is guaranteed to work, and that it doesn't depend on external resources. The validation system runs a series of assertions confirming the page’s markup meets the AMP HTML specification.

Another version of the validator comes bundled with every AMP page. This version can log validation errors directly to the browser’s console when the page is rendered, allowing you to see how complex changes in your code might impact performance and user experience.

探索 AMP 网站的用例