Select Tag - <select>

This lesson discusses the Select <select> tag and its usage in web development.

This tag is used to create a dropdown list in a form. It contains a set of <option> tags that define the options in the dropdown list.

<select id="color" name="color">
    <option value="red">Red</option>
    <option value="green">Green</option>
    <option value="blue">Blue</option>
</select>

The code above shows an example of the <label> tag. This tag is used to create a dropdown list in a form, which contains a set of <option> tags that define the options in the dropdown list. The id attribute specifies the ID of the dropdown list, while the name attribute specifies the name of the dropdown list.