HTML < select > Tag - Learn About Website | DaddyFile

0

HTML <select> Tag

Example

Create a drop-down list with four options:

<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>

Definition and Usage

The <select> element is used to create a drop-down list.
The <option> tags inside the <select> element define the available options in the list.

Tips and Notes

Tip: The <select> element is a form control and can be used in a form to collect user input.

Differences Between HTML 4.01 and HTML5

HTML5 has added some new attributes.

Post a Comment

 
Top