asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > SIZE Attribute

SIZE Attribute | size Property


Sets or retrieves the size of the control.

Syntax

Inline <element SIZE = intSize...>
Script object.size = intSize ]

Possible Values

intSize Integer value.

The property is read/write with no default value.

Remarks

When applied to an INPUT object, this attribute tells the browser the initial width of the control. The width is given in pixels except when the INPUT type is text or password. In these cases, its value refers to the number of characters.

When applied to a SELECT object, it represents a list box with the specified number of rows.

Applies To

INPUT, SELECT

See Also

maxLength



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note