untitled
viviti
 HTML Amigo HomeHome
 HTML
   Introduction to HTML
   Using Notepad
   General Form
   Meta Tags
   Text Formatting
   Lists
   FTP
   Links
   Tables
   Images/Multimedia
   Frames
   Forms
     General Form
     Text Boxes
     Checkboxes
     Radio Buttons
     Dropdowns
     Textarea
     A Note About Forms
   Style Sheets
   Javascript
   Web Hosting
   Special Characters
   Glossary
 Help Forums
   HTML Help Forum
Fast connection
   HTML Help Forum
Slow connection
 Extra (Important) Stuff
   Comments
   Link To Us
   Web Tools
   Resources
   The Poll Page


Making A Textarea

      Okay, so lets say you want to get feedback from a visitor, but a text box is too small and it only allows for one line. So how can we make a 'big' textbox. Well, that is exactly what a text area is.

The < TEXTAREA> Tag

      This tag is really easy to set up. This declares that a big box will be created with several properties such as the rows(height) and columns(width).

Let's look at the general form:

< TEXTAREA NAME="name" ROWS="rows" COLS="columns" WRAP="hard/soft/none" VALUE = "">
Text you want shown goes here
</TEXTAREA>

Properties of the textarea:

ROWS="rows"
COLS="columns"
WRAP = "hard"
WRAP = "soft"
WRAP = "none"
VALUE="value"

Name = "name"
Specifies the number of rows or height of the textarea
Specifies the number of columns or width of the textarea
Different styles of wrapping text in a textarea

No wrap
The Value is usally left blank because what someone writes becomes the value
Name of the textarea sent to the CGI script

The Code


The Result

Comment about the site:



FOR DEMONSTRATION ONLY!!

A couple things to remember about textarea:

  1. ROWS indicate height, COLUMNS indicate width
  2. WRAP allows you to wrap the text in the area.
  3. VALUE is usually left blank because the user input becomes the value
Rate Tutorial:
12345
Rated: 0 out of 5
Votes: 0
Free Email Forms from Bravenet.com

The past few tutorials showed you how to create form objects, now learn how to proccess your form and get the information. Continue to A Note About Forms



© HTML Amigo 2005


Web Hosting · Blog · Guestbooks · Message Forums · Mailing Lists
Easiest Website Builder ever! · Build your own toolbar · Free Talking Character · Email Marketing
powered by a free webtools company bravenet.com