0
How I can limit the use of words in a name field in creating a Form? Which tag is used?
<html> <head> <title>form</title> </head> <body> <form> <input type="text" name="username" value="username" required/> </body> </html>
3 Réponses
+ 1
Use the "max" attribute. 👍
+ 1
Limit the use of words meaning filter inappropriate words? or limit length of input? for the latter, use `maxlength` attribute. For the former, I think you need to describe clearly what "limit words" mean.
<input type="text" name="username" maxlength="10" value="username" required />
0
Thank you to all this was helpful