-
Notifications
You must be signed in to change notification settings - Fork 0
/
html_forms.html
70 lines (51 loc) · 1.98 KB
/
html_forms.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>html forms</title>
</head>
<body>
<h1>Html Forms</h1>
<p>An HTML form is used to collect user input. The user input is most often sent to a server for processing.</p>
<hr>
<h2>Text Type Input : -</h2>
<form>
<label for="fname">First Name</label><br>
<input type="text" name="fname" placeholder="write your name.."><br>
<label for="lname">Last Name</label><br>
<input type="text" name="lname" placeholder="write your name.."><br><br>
<input type="submit" name="Submit" value="Submit">
</form>
<h2>Radio Button Inout : - </h2>
<form>
<h3>Choose Your best vehicle.</h3>
<input type="radio" name="v" value="v1">
<label for="v1">Vehicle 1</label><br>
<input type="radio" name="v" value="v2">
<label for="v2">Vehicle 2</label><br>
<input type="radio" name="v" value="v3">
<label for="v3">Vehicle 3</label><br><br>
<input type="submit" name="" value="Submit">
</form>
<h2>CheckBoxes : -</h2>
<form>
<h3>Choose your used cars : -</h3>
<input type="checkbox" name="v1" value="v1">
<label for="v1">Vehicle 1</label><br>
<input type="checkbox" name="v2" value="v2">
<label for="v2">Vehicle 2</label><br>
<input type="checkbox" name="v3" value="v3">
<label for="v3">Vehicle 3</label><br><br>
<input type="submit" name="" value="Submit">
</form>
<h3>Different input Types : -</h3>
<input type="file" name="" value=""><br>
<input type="date" name="" value=""><br>
<input type="search" name="" value=""><br>
<input type="color" name="" value=""><br>
<input type="hidden" name="" value="bfgh"><br>
<input type="image" name="" value="grdgrg"><br>
<input type="email" name="" value="dsfd"><br>
<a href="index.html">back to home</a>
</body>
</html>