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 ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.