A drop-down list with a name attribute.
The name
attribute specifies the name for a drop-down list.
The name
attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted.
<select name="text">
Value | Description |
---|---|
text | The name of the drop-down list |
Example:
HTML
<label for="cars">Choose a car:</label>
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |