TEXTAREA tag
Walter W. Giesbrecht
walterg at YorkU.CA
Mon Apr 20 07:36:48 EDT 1998
On 20 Apr 98 at 7:06, JENNY BOOKER wrote:
> I have been approached about a problem to get submitted forms to also
> wrap the text within a textarea box. Does anyone know of a way of
> doing this without having to manually put in the line breaks, as
> your completeing the form? Is there anything like a LINELENGTH tag
> that will automatically wrap the text or is this something that will
> be developed in the next HTML standards?
The <TEXTAREA> element supports a WRAP attribute that will do what
you want, but it is only supported in Netscape 2.x and up. The
syntax is
WRAP="physical"
Causes the text to wrap within the area specified by the COLS and
ROWS attributes. The end-of-line characters are passed on when
the FORM is submitted.
WRAP="virtual"
Same as above, but the end-of-line characters are not trasmitted
along with the text.
This comes from HTML SOURCEBOOK (3rd edition) by Ian S. Graham, which
only covers HTML 3.2, but is one of the best HTML references I have
seen.
--+------++-+------+-++---+--+---+-+--+-----++--+--+--+----+-+++-
Walter W. Giesbrecht walterg at yorku.ca
York University Libraries (416)736-5639
More information about the Web4lib
mailing list