Size
You can use the size
attribute to set the display (in character widths) for the text input box. For example, the “birth year” input is set to only allow 4 characters, so why not limit the size of the box to 4 characters as a visual indicator?
HTML
<p>
Birth Year:
<input type="text" name="name" id="test-date" maxlength="4" size="4" />
</p>
Please Enter:
Birth Year:
Net ID:
Password:
Comments or Concerns:
- Previous
- Next