Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML textarea wrap attribute

HTML

HTML textarea Tag Reference HTML

Example

A text area with wrap="hard" will include line breaks (if any) when the form is submitted:

<

textarea

rows

=

"

2

"

cols

=

"

20

"

wrap

=

"

hard

"

Runoob Tutorial provides the most comprehensive web technology tutorials.

textarea

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the wrap attribute.


Definition and Usage

The wrap attribute specifies how the text in the text area is wrapped when the form is submitted.


Differences between HTML 4.01 and HTML5

The wrap attribute is new in HTML5


Syntax