G.5. More Complex XHTML Forms
In the preceding section, we introduced basic forms. In this section, we introduce elements and attributes for creating more complex forms. Figure G.4 contains a form that solicits user feedback about a Web site.
Figure G.4. Form with text areas, a password box and checkboxes.
1 <?xml version = "1.0" ?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 3 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 4 5 <!-- Fig. G.4: form2.html --> 6 <!-- Form Design Example 2 --> 7 8 <html xmlns = "http://www.w3.org/1999/xhtml"> 9 <head> 10 <title>Internet and WWW How to Program - Forms</title> 11 </head> 12 13 <body> 14 15 <h1>Feedback Form</h1> 16 17 <p>Please fill out this form to help 18 us improve our site.</p> 19 20 ... |
Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.