Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h2>The select Element</h2>
<p>The select element defines a drop-down list:</p>
<form action="/action_page.php"> <label for="cars">Choose a car:</label> <select id="cars" name="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat">Fiat</option> <option value="audi">Audi</option> </select> <input type="submit">
</form>
</body>
</html>
Full Example of <select> Element | HTML Form Elements |
HTML Form Elements | HTML Form Elements |
How to create HTML <input> Element | HTML Form Elements |
How to create The <label> Element | HTML Form Elements |
How to create HTML <select> Element | HTML Form Elements |
How to create HTML <option> element | HTML Form Elements |
How to Visible HTML Select Option Values | HTML Form Elements |
How to Allow Multiple Selection in HTML Option Value | HTML Form Elements |
How to create HTML <textarea> Element | HTML Form Elements |
How to create HTML <button> Element | HTML Form Elements |
How to create HTML <fieldset> and <legend> Elements | HTML Form Elements |
How to create HTML <datalist> Element | HTML Form Elements |
How to create HTML <output> Element | HTML Form Elements |
Type
: |
html |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Form Elements |
Uploaded by
: |
Admin |