form

in an <INPUT TYPE=text> form tag is it possible to
specify that the text field can have a maximum of say
3 characters only?
mramsayAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
tgogliaConnect With a Mentor Commented:
Yes, all you have to do is set the maxlength attribute to the value that you would like-

<input type='text' maxlength='3'>

The W3C has really good documentation for the various versoins of HTML (ie 2.0,3.2,etc..) on their website http://www.w3c.org
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.