Export (0) Print
Expand All
Expand Minimize

2.1.39 [HTML] Section 17.4, The INPUT element


The specification states:

size = cdata [CN] 

This attribute tells the user agent the initial width of the control. The width is 
given in pixels except when type attribute has the value "text" or "password". In 
that case, its value refers to the (integer) number of characters.

All Document Modes (All Versions)

The size attribute has an impact only on INPUT elements with a type of text, password, and file. For text, password, and file the width of the input text box is set to the (integer) number of characters.

The size attribute has no impact on INPUT elements with a type equal to hidden, checkbox, radio, reset or submit.


The specification states:

Attributes defined elsewhere

* id, class (document-wide identifiers) 
* lang (language information), dir (text direction) 
* title (element title) 
* style (inline style information) 
* alt (alternate text)
* align (alignment) 
* accept (legal content types for a server) 
* readonly (read-only input controls) 
* disabled (disabled input controls) 
* tabindex (tabbing navigation) 
* accesskey (access keys) 
* usemap (client-side image maps) 
* ismap (server-side image maps) 
* onfocus, onblur, onselect, onchange, onclick, ondblclick, onmousedown, onmouseup,
 onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic 

All Document Modes (All Versions)

The ismap attribute is not supported for the INPUT element.

© 2014 Microsoft