In This Chapter
Adding form to your pages
Creating input and password text boxes
Building multi-line text inputs
Making list boxes and check boxes
Building groups of radio buttons
XHTML gives you the ability to describe Web pages, but today's Web isn't a one-way affair. Users want to communicate through Web pages, by typing in information, making selections from drop-down lists, and interacting, rather than simply reading. In this chapter, you learn how to build these interactive elements in your pages.
There's one more aspect to XHTML that you need to understand — the ability to make forms. Forms are the parts of the page that allow user interaction. Figure 7-1 shows a page with all the primary form elements in place.
The form demo (or
formDemo.html on this book's CD-ROM, if you're playing along at home) exemplifies the main form elements in XHTML. In this chapter, you discover how to build all these elements.