TEXTAREA
![[Local Convention]](/icons/dtdguid2.gif)
Used only in forms, the TEXTAREA
element is used to allow a user to enter more than one line
of text in a FORM.
Example
<TEXTAREA NAME="address" ROWS=64 COLS=6>
Hewlett Packard Laboratories
1501 Page Mill Road
Palo Alto, California 94304-1126
</TEXTAREA>
The text up to the end tag is used to initialize the field's value.
This end tag is always required even if the field is initially
blank.
Explanatory Note: TEXTAREA and INPUT/TEXT
In the initial design for forms, multi-line text fields were
supported by the INPUT element with TYPE=TEXT . Unfortunately, this
causes problems for fields with long text values as SGML limits the
length of attribute literals. The HTML 2.0 DTD allows for up to 1024
characters (the SGML default is only 240 characters!).
Content
ATTRIBUTES
CONTENT DECLARATION
- Tag Minimization
-
Open Tag: REQUIRED
Close Tag: REQUIRED
Parent Elements
- a -- Anchor; source and/or destination of a link
- address -- Address, signature, or byline for document or passage
- applet
- b -- Bold text
- big
- blockquote -- Quoted passage
- body -- Document body
- caption
- center
- cite -- Name or title of cited work
- code -- Source code phrase.
addresses and URLS.
- dd -- Definition of term
- dfn
- div
- dt -- Term in definition list
- em -- Emphasized phrase
- font
- form -- Fill-out or data-entry form
- h1 -- Heading, level 1
- h2 -- Heading, level 2
- h3 -- Heading, level 3
- h4 -- Heading, level 4
- h5 -- Heading, level 5
- h6 -- Heading, level 6
- i -- Italic text
- kbd --
Keyboard phrase, e.g. user input
- li -- List item
- marquee
- multicol
- noscript
- p -- Paragraph
- pre -- Preformatted text
- samp --
Sample text or characters
- small
- strike
- strong -- Strong emphasis
- sub
- sup
- td
- th
- tt --
Typewriter text
- u
- var --
Variable phrase or substitutable
Top Elements
All Elements
Tree
htmlx DTD