Open In App

HTML | <Textarea> minlength Attribute

The HTML <Textarea> minlength Attribute is used to define the minimum number of characters (as UTF-16 code units) of a Textarea Element. The Integer value must start with 0 or higher. 
Syntax: 
 

<Textarea minlength="numeric"> 

Attribute Value: 
 



Example: 
 




<!DOCTYPE html>
<html>
 
<body>
    <center>
        <h1 style="color:green;">
        GeeksforGeeks
        </h1>
        <h2>
       Textarea minlength attribute
        </h2>
        <textarea rows="4"
                  cols="50"
                  minlength="6">
            write here something that you want...
        </textarea>
    </center>
</body>
 
</html>

Output: 
 



Supported Browsers: The browsers supported by <Textarea> minlength Attribute are listed below: 
 

Article Tags :