This is the home of the AMP book "AMP: Building Accelerated Mobile Pages".
If you've bought this book, I'd like to say thank you, and that I hope you've found it useful.
If you haven't bought it, but have found any of the code on this site useful, and if you have the cash to spare, consider treating yourself to a copy!
Here you will find working versions of all the code examples in the book, as well as new examples, tips and tricks, and descriptions of new features as they become available.
If you find any bugs or inaccurate information please get in touch and I'll rectify the issue as soon as possible.
Browse examples by chapter
Browse and download sample code, and see running examples.
- Chapter 1 Ride the Lightning with AMP
- Chapter 2 Building Your First AMP Page
- Chapter 3 Making an Impression - Layout and Page Design in AMP
- Chapter 4 Engaging Users with Interactive AMP Components
- Chapter 5 Building Rich Media Pages in AMP
- Chapter 6 Making Contact - Forms in AMP
- Chapter 7 Dynamic Content and Data-Driven Interaction
- Chapter 8 Programming in AMP - amp-bind
- Chapter 9 When AMP Is Not Enough - Enter the iframe
- Chapter 10 Ads and Analytics in AMP
- Chapter 11 AMP Deployment and Your Web Presence
- Chapter 12 AMP - Where It's At and Where It's Going