| forms - text |
|
< text > textarea buttons image form e-mail form checkbox radio select password hidden layout cgi tags epilogue |
The input tag defaults to a one line text box. You can leave it at
that. You may also choose to specify it as a text box. It does not really
change anything, but I prefer to do it this way.
<INPUT TYPE="text"> You can also specify the size of the box. You also use a different attribute: SIZE. This size bears no relation to the amount of characters you can put inside. And again there may be huge differences in browsers. <INPUT TYPE="text" SIZE="40"> You may limit the amount of text someone may put inside a box. If you make a text box for an American zip code, you know it will always be five figures. You can limit the size with the MAXLENGTH attribute, should you want to. Only use this if you are absolutely sure of the size. What if you have foreign visitors, having postal codes with more characters? <INPUT TYPE="text" MAXLENGTH="5"> |