Let Wufoo do the hard work. Sign up for a free account and start making forms the easy way.
Live Demo
Firefox | Safari | Safari | Chrome | Opera | IE | Android |
|---|---|---|---|---|---|---|
The Low Down
The size attribute defines the width of the <input>form control.
- Valid for
<select>and input of typetext, search, tel, url, email, andpassword. Otherwise it is ignored. - Defines the width of the
<input>, unless overridden with CSSwidthproperty. The width will be the value of thesizeattribute in characters that the input will display. - Value should be an integer greater than zero.
- When not defined, the width of most input elements defaults to 20.
- In
<select>it defines the number of options displayed. - The size attribute was also valid on
<hr>,<font>, and<basefont>. It is now obsolete on<hr>(in favor of CSS), and both<font>and<basefont>have been deprecated.