Prev | Current Page 217 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

It??™s written to be the next step
in building your Web development
skills after you have mastered the
techniques shown here in Stylin??™.
STYLIN??™ WITH CSS - CHAPTER 6 190
to know how to create forms in XHTML so that they send the correctly
structured data to the server for processing when the user hits
the Submit button.
Form Markup
Here??™s a form, shown in Figure 6.13, that uses each of the different
types of XHTML form elements.
FIGURE 6.13 This example uses
each of the different types of form
elements.
Here??™s the code for this form



DESIGNING INTERFACE COMPONENTS 191


Every kind of form element



  • This list can be used to provide general info about
    ?¬? lling the form

  • Use this list also to display errors in the form.
    Adding an "error" class to the ul will turn the text
    red.

  • You can cut and paste the form elements to create
    a form for your needs and it will automatically style
    itself to look like this one.





size="18" maxlength="36" tabindex="1" />



size="18" maxlength="20" tabindex="2" />