Easy Tutorial
❮ Tag Area Tag Map ❯

HTML <textarea> required Attribute

HTML <textarea> Tag

Example

A form with a required text area:


Browser Support

Except for Internet Explorer and Safari, other major browsers support the required attribute.


Definition and Usage

The required attribute is a boolean attribute.

The required attribute specifies that a text area is required/must be filled out (to submit the form).


Differences Between HTML 4.01 and HTML5

The required attribute is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the required attribute must be defined as <textarea required="required">.


Syntax


❮ Tag Area Tag Map ❯