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

HTML textarea maxlength attribute

HTML

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Chrome, and Safari support the maxlength attribute.

**Note:** Opera or Internet Explorer 9 and earlier versions do not support

All major browsers support the maxlength attribute except Internet Explorer and Opera.


Definition and Usage

The maxlength attribute specifies the maximum length of the text area (in characters).


Differences between HTML 4.01 and HTML5

The maxlength attribute is new in HTML5


Syntax