O'Reilly logo

HTML, XHTML, and CSS: Your visual blueprint™ for designing effective Web pages by Rob Huddleston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. ADDING FORMS

Create a Form

XHTML provides for a host of form controls to accept different types of data. Which controls you use depends on the needs of your site, but regardless of what kind of information you need to collect or what you plan to do with it, you will always begin with the form element to define the form itself. All of the form controls will be wrapped within this element's tags.

The form tag takes two required attributes. The easier attribute to understand is action, which is simply the path to the page on the server that will process the form — that is, the page to which you need to send the data. The second attribute, method, instructs the browser as to how it should send the data, and it accepts two possible values: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required