html drop down button
drop down button
- Drop down list create a <select> element is use.
- The name attribute is reference the form data after the form is submitted
- The id attribute is needed to associate the drop down list with a label.
- id attribute is need to drop down list with label.
- The <option> tag inside the <select> element define the available options in the drop down list.
DROP DOWN LIST
Important attributes
Html program
drop down list
<!DOCTYPE html>
<head>
<title>drop down list html</title>
</head>
<body>
<h2>drop down list create in html</h2>
<form>
<label for="game"> Choose a games</label>
<select name="game" id="game">
<option value="kho kho"> kho kho</option>
<option value="kabaddi">kabaddi</option>
<option value="hide and seek">Hide & Seek
</option>
<option value="gutte">Gutte</option>
<option value="vish amrit"> vish Amrit
</option>
</select>
</form>
</body>
</html>
Post a Comment