Syntax Diagram for <textarea>
The <textarea> input element of a <form> is a
multi-line area into which you can type.
See also the <form> tag, as well as <input> and <select>.
- Specifies the name of the field, so the handling script can associate the
field name and its value.
- rows, cols
- Specify the size, expressed in character cells, of the visible portion of
the text area. This is not a logical size, but just an
apparent size--text will automatically scroll out of and back into
the visible area as the cursor moves.
- Specifies if and how word-wrapping should take place. There are three
Hard returns--those typed in by the user--are retained in all cases.
- wrap=off: Long lines are not wrapped in the textarea, nor are
they wrapped in the data sent to the processing script.
- wrap=soft or wrap=virtual: Long lines are wrapped in
the textarea, but are not wrapped in the data sent to the processing
- wrap=hard or wrap=physical: Long lines are wrapped
in the textarea, as well as in the data sent to the processing script.
. . .causes these results (replace the default text in the textarea
fields below with some long lines of text to see the differences between the
various wrap values):
. . .or these results (when wrap=soft):
. . .or these results (when wrap=hard):
Last Modified: Thursday, 24-Dec-2009 14:41:53 MST