Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
frontend
html
examples
forms
02text_maxlength.html
02text_maxlength.html
<!DOCTYPE HTML> <html lang="hr"> <head> <meta charset="UTF-8"> <title>input text maxlength</title> </head> <body> Input field is limited to 3 chars only. <br> <br> <form action="script.js" method="POST" enctype="application/x-www-form-urlencoded"> <label for="f1">username:</label> <input type="text" id="f1" name="username" value="" size="5" maxlength="3"> </form> </body> </html>
Reload page
Preview
W3C validation
Edit Code