• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Adding HTML Forms > Creating the Form

Creating the Form

Now that you’ve seen how to begin and end a <form> element, you’re probably just about ready to start adding some substance to it. You can add all sorts of elements to your forms, including areas for entering text, menus for selections, check boxes, and radio buttons for options. You’ll also need to add at least a few buttons, including the special buttons that enable your visitors to submit the form’s data to your Web server computer.

Text Fields and Attributes

One of the more common uses for forms is to accept multiple lines of text from a user, perhaps for feedback, bug reports, or other uses. To do this, use the <textarea> element within your form. You can set this element to control the number of rows and columns it displays, although it will accept as many characters as the user desires to enter. It takes the following form:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint