dropdown menu or select tag or use of option tag

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.


<!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>

Comments

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag