-
Notifications
You must be signed in to change notification settings - Fork 0
/
Select.html
28 lines (22 loc) · 1015 Bytes
/
Select.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<body>
<h2>The select Element</h2>
<p>The select element defines a drop-down list:</p>
<!--***************This example is for select element(drop down) ****************-->
<form action="/action_page.php">
<!--<label for="cars">Choose a car:</label>
<select id="cars" name="cars" size="2">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select><br><br>
<input type="submit">-->
<!--***************This example is for text area ****************-->
<textarea name="message" rows="10" cols="30">The cat was playing in the garden.</textarea>
<br><br>
<button type="button" onclick="alert('Data submitted successfully')">Submit!</button>
</form>
</body>
</html>