<select attribute-name="attribute-value"></select> Name Value Description autocomplete on | off Specifies whether the element represents an input control for which a UA is meant to store the value entered by the user (so that the UA can prefill the form later) disabled disabled | empty Specifies that the element represents a disabled control form IDREF Identifies a form with which to associate the element multiple multiple | empty Specifies that the element allows multiple values name string Name part of the name/value pair associated with this element for the purposes of form submission required required | empty Specifies that the element is a required part of form submission size positive integer Number of options meant to be shown by the control represented by its element
<!doctype html>
<html>
<body>
<form>
<select disabled>
<option>option1</option>
<option>option2</option>
<option>option3</option>
</select>
<input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form id="myform">
<select form="myform">
<option>option1</option>
<option>option2</option>
<option>option3</option>
</select>
<input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<select multiple>
<option selected>option1</option>
<option>option2</option>
<option selected>option3</option>
<option>option4</option>
<option selected>option5</option>
</select>
<input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<select name="myname">
<option>option1</option>
<option>option2</option>
<option>option3</option>
</select>
<input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<select required>
<option>option1</option>
<option>option2</option>
<option>option3</option>
</select>
<input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<select size="5">
<option>option1</option>
<option>option2</option>
<option>option3</option>
<option>option4</option>
<option>option5</option>
</select>
<input type="submit">
</form>
</body>
</html>