The TEXTAREA Tag
The TEXTAREA tag also allows you to display unformatted text as did the XMP
tag. The TEXTAREA however has quite a few advantages and therefore is useful
for even more applications. For instance, user input can be taken in the
textfield, long text passages can be displayed within the textfield, etc.
Here's an example displaying raw HTML:
SPECIFICATIONS:
The TEXTAREA must be displayed within
form tags. The two most important attributes of the textarea tag are: cols
and rows. The cols attribute controls how wide the text area is and the rows
area controls how tall it is. Any text placed within the textarea tag will
be displayed within this area. See the source for this page for an example.
----------------------------------------------
ASSIGNMENT:
You will create three text areas on your
page. Here are the specifications for each:
TEXTAREA ONE: Ten units tall and sixty units wide. This textarea will contain a
list of twenty common names for females.
TEXTAREA TWO: Twenty-three units tall and forty units wide. This textarea will
contain a list of twenty common names for males.
TEXTAREA THREE: Twelve units tall and eighty units wide. This textarea will
contain a 200 word essay about names. You might write about the names you
would give any children you may have and why you would select those names.
Or you might write about the funniest names you've ever heard. You might
decide to write about names people give their pets (or race horses) and what
you think of some of the names you've heard. Or you might come up with a
slightly different spin on the topic of NAMES as given to individual people
or animals.
NOTE: Don't include HTML tags inside your textareas.