/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: size

[this page | pdf | back links]

The HTML size attribute indicates the width in characters for <input> elements or number of visible options for <select> elements.

 

Valid attribute values (when used with <input> elements) include:

 

Value

Description

integer

Number of characters that identify the width of the element

 

Valid attribute values (when used with <select> elements) include:

 

Value

Description

integer

Number of visible options in drop-down menu

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile