Chapter 6 - Making Contact - Forms in AMP

In this chapter, we're going to improve our prototype by adding some e-commerce essentials. Forms will be central to everything we build next. While we saw some interactive UI elements in the previous chapters, forms really open up a whole new level of interaction by providing the ability to generate user requests, and to submit and collect user input.

It will be necessary to learn a few other things along the way, including form validation and amp-mustache templates. We'll also need to set up some server-side code, to handle submissions and state. This is not strictly AMP, so we'll keep this to a minimum.

In particular, in this chapter, we'll see how AMP's form support can be used to enhance the user experience by exploring the following features:

Topics covered in Chapter 6 include the following:

Buy "AMP: Building Accelerated Mobile Pages" on Amazon US, Amazon UK

View Examples

Download code

Download all code for this chapter: ch6.zip