The maxlength
attribute specifies the maximum length (in characters) of a text area.
The numbers in the table specify the first browser version that fully supports the attribute.
<textarea maxlength="number">
Value | Description |
---|---|
number | The maximum number of characters allowed in the text area |
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The textarea maxlength attribute</h1>
<label for="text">Type</label><br>
<textarea rows="4" cols="50" maxlength="50">
Enter text here...</textarea>
</body>
</html>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |