![]() |
Definition and UsageThe Applies toThe
Browser SupportThe |
Example:
HTML
<form action="/action_page.php">
<label for="username">Username:</label>
<input type="text" id="username" name="username" maxlength="10"><br><br>
<input type="submit" value="Submit">
</form>
Example:
HTML
<textarea maxlength="50">
Enter text here...
</textarea>
html maxlength attribute |
How to add An <input> element with a maximum length of 10 characters | HTML Attribute |
How to add A text area with a maximum length of 50 characters | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded: | 6 days ago |
Uploaded by: | Admin |
Views: | 30 |
Reffered: https://www.w3schools.com/tags/att_maxlength.asp