How to use HTML Tag

How to use HTML <select> tag

##All major browsers support the element is used to define the available options in the list.

Differences between HTML 4.01 and HTML 5

HTML5 adds some new attributes.

Tip

Tip: The select element is a form control that can be used to accept user input in a form.

Example

Create a select list with 4 options:

<!DOCTYPE html>
<html>
<body>

<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select>
  
</body>
</html>
Copy after login

The above is the detailed content of How to use HTML