O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

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

Creating Forms

XHTML's form support is simple and robust. A handful of XHTML elements create the most popular controls of modern graphical interfaces, including text windows, check boxes and radio buttons, pull-down menus, and push buttons.

Composing XHTML forms might sound complex, but you need to master surprisingly few elements to do it. All form-related elements occur within the <form> element. It is possible to have more than one form in an XHTML document, but you must be careful not to nest the <form> elements that define them

Tip

Adding a closing </form> tag immediately after creating an opening <form> tag is a good practice; then you can go back to fill in the contents. Following this procedure helps you avoid leaving off the closing ...

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