Tags
<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<head>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>

Standard
Attributes
Events

The <select> tag


Definition and Usage

The select element creates a drop-down list. 


Differences Between HTML and XHTML

NONE


Tips and Notes

Tip: Use this tag in the form element to accept user input. 


Example

Source Output
<select>
  <option value ="volvo">Volvo</option>
  <option value ="saab">Saab</option>
  <option value ="opel">Opel</option>
  <option value ="audi">Audi</option>
</select>


Optional Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
disabled disabled When set, it disables the drop-down list STF
multiple multiple When set, it specifies that multiple items can be selected at a time STF
name unique_name Defines a unique name for the drop-down list STF
size number Defines the number of visible items in the drop-down list STF

Standard Attributes

id, class, title, style, dir, lang, xml:lang, accesskey, tabindex

For a full description, go to Standard Attributes.

Event Attributes

onfocus, onblur, onchange

For a full description, go to Event Attributes.