Tuesday, 21 April 2020

Tech Reporter

HTML code for Drop down

The select element

The select element is used to create a drop-down list:



Code

<!DOCTYPE html>
<html>
<body>

<h1>The select element</h1>

<p>The select element is used to create a drop-down list:</p>

<label for="cars">Choose a car:</label>

<select id="cars">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select>
 
</body>
</html>

Tech Reporter

About Tech Reporter -

I'm ABDUL HADI, passionate about knowing information about gadgets and technologies. passionate about modifying(tweaking) gadgets and accessories in REAL LIFE for better use.

Subscribe to this Blog via Email :