Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML <Textarea>maxlength attribute

  • Last Updated : 09 Jan, 2020

The HTML <Textarea>maxlength attribute is used to specify the maximum number of characters enters into the Textarea element.


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<Textarea maxlength ="number">

Attribute Value:

    number: It contains single value number which allows the maximum number of character in Textarea element. Its default value is 524288.


<!DOCTYPE html> 
    <title>Textarea maxlength Attribute</title
    fieldset { 
        width: 50%; 
        margin-left: 22%; 
    h1 { 
        color: green; 
        <h2>Textarea maxlength Attribute</h2
        <textarea form="mygeeks"  maxlength="9"
        <form id="mygeeks"
            <input type="text" name="usrname"
            <input type="submit"


Supported Browsers: The browsers supported by HTML <Textarea>maxlength attribute are listed below:

  • Google Chrome
  • Internet Explorer 10.0 +
  • Firefox 4.0
  • Opera 15.0
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!