C H A P T E R  18

images

Form Controls

Forms are essential to many web sites, certainly to e-commerce sites. If we can’t gather the visitors’ information, we can’t do business, and forms are the mechanism for gathering information. So we really can’t complete the book without a chapter on forms.

To build the form control, we had to build two controls. A form has content, so we built a control for the form’s content: the fieldset control. A fieldset contains (along with other elements) input elements, so we also needed a control for building input elements.

Note We did not make an actual form control. To create a form with our controls, we create a ...

Get Pro HTML5 Performance now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.