HTML Forms

Forms are block elements designed to act as containers for HTML controls such as text boxes, radio buttons etc that can be the target of user interaction via the keyboard or the mouse. Contrary to commonly held belief, such controls do not have to be placed inside form containers. Indeed, there is little to be gained by doing this if all one wants to do is to provide interactive controls whose contents are examined and manipulated by JavaScript run on the web browser. However, forms provide a convenient shorthand mechanism for for collating user supplied information and shipping it to another Internet location for further analysis and action. This is because forms define attributes which, when correctly specified, automate the data collation and shipping processes. These attributes - and others which forms share in common with other HTML elements - are listed below

The effects of different enctype and method combinations are discussed here.

Jump To...

Colophon