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

HTML

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support autofocus Specifies that the text area should automatically get focus when the page loads. colsnumberSpecifies the visible width of a text area. disableddisabled Specifies that the text area should be disabled. formNewform_idDefines one or more forms the text area belongs to. maxlengthNewnumberSpecifies the maximum number of characters allowed in the text area. nametextSpecifies the name of the text area. placeholderNewtextSpecifies a short hint that describes the expected value of the text area. readonlyreadonly Specifies that the text area is read-only. requiredNew required Specifies that the text area is required/mandatory. rowsnumberSpecifies the visible number of lines in a text area. wrapNew hard soft Specifies how the text in a text area should be wrapped when the form is submitted.


Global Attributes

HTML Global Attributes.


Event attribute

HTML Event Attributes.


Related Articles

HTML DOM Reference Manual:The Textarea object