Horje
Browsers Support of HTML <textarea> wrap Attribute

Browsers Support

The HTML <textarea> wrap attribute enjoys broad support across modern web browsers.
 

Supported Browsers and Versions:

  • Google Chrome: Fully supported from version 16 onwards.
  • Mozilla Firefox: Fully supported from version 4 onwards.
  • Microsoft Edge: Fully supported from version 12 onwards.
  • Apple Safari: Fully supported from version 6 onwards.
  • Opera: Fully supported from version 12.1 onwards.
  • Internet Explorer: Supported from version 6 onwards.

Functionality:

The wrap attribute controls how text within a <textarea> element is wrapped when submitted in a form. It accepts two primary values:
  • soft:
    This is the default behavior. The text displayed in the textarea wraps visually, but no newline characters are added to the submitted value.
  • hard:
    This value causes the browser to insert newline characters into the submitted value based on the cols attribute's defined width. This means that if the text exceeds the specified column width, a newline character will be added at that point in the submitted data.
Note: While wrap="off" is sometimes mentioned, its behavior is typically the same as wrap="soft" in terms of submitted data, although it might visually prevent wrapping in some older or less common browser configurations, adding a scrollbar instead.
 

Learn HTML <textarea> wrap Attribute






html browsers support

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Browser Support
Uploaded by:
Admin