<select size="">

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
The Role Of In HTML Forms (To Create Drop-Down Lists)
What does <select size=""> do?
Specifies the size of a select item.

Code Example

<p><strong>Select your favorite species of flamingo.</strong></p>

<select size="6">
          <option value="American">American flamingo</option>
          <option value="Andean">Andean flamingo</option>
          <option value="Chilean">Chilean flamingo</option>
          <option value="Greater">Greater flamingo</option>
          <option value="James's">James's flamingo</option>
          <option value="Lesser">Lesser flamingo</option>
</select>

Select your favorite species of flamingo.

Multiple List Selections

Setting the size of a selection list lets you display multiple options at the same time. This can save scrolling, and encourage the user to make multiple selections (if multiple is specified). The value of size is the number of selection rows you would like to display.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.

Browser Support for size

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll