|
Author: Jenny Nguyen
|
|
The tag <textarea> defines a multi-line text input control. Textarea have an opening and closing tag, any words inserted Here is the syntax of Textarea tag: <textarea> This is textarea tag</textarea> In this lesson, you will learn how to work with Readonly and Disabled attributes. The first attribute we work with is Readonly. Syntax : <texarea readonly="value"> Example: <textarea cols="20" rows="5" readonly="readonly">Specifies that the text area should be read-only</textarea> Result: The second attribute is Disabled: Syntax: <textarea disabled="value"> Sample: <textarea cols="20" rows="5" disabled="disabled">Specifies that the text area should be disabled</textarea> Result: Did you like this tip The <textarea> tag is supported in all major browsers.
|