In this tutorial, We will introduce you about the required attribute of the <textarea> tag in html5.
In this tutorial, We will introduce you about the required attribute of the <textarea> tag in html5.In this tutorial, We will introduce you about the required attribute of the <textarea> tag in html5. This attribute is used to specify that the input textarea is must be filled by user and it is mandatory.
The attribute is used as in the <textarea> tag:
<textarea required="value">Text Here</textarea> |
This attribute have following possible values.
Example: required_attribute.html
<!DOCTYPE html>Output:
Difference between html4.01 and html5
This attribute is new in the html5.