forked from 0xali3n/Hactoberfest-Beginner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form Using HTML
executable file
·110 lines (87 loc) · 4.36 KB
/
Form Using 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
<h1 class="text-center"> <u>Html Form</u> </h1>
<div class="container">
<form action="">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" class="form-control" name="" id="name" placeholder="Enter the name of user ">
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="text" class="form-control" name="email" placeholder="Email">
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="password" type="password" class="form-control" name="password" placeholder="Password">
</div>
<div class="input-group">
<div class="col-sm-10">
<div class="phone-list">
<div class="input-group phone-input">
<span class="input-group-btn">
<button type="button" class="btn btn-default" aria-expanded="false"><span class="type-text">Phone</span> <span class="caret"></span></button>
</span>
<input type="hidden" name="phone[1][type]" class="type-input" value="" />
<input type="text" name="phone[1][number]" class="form-control" placeholder="+1 (999) 999 9999" />
</div>
</div>
<label for="time"></label><input type="time" name="" id="time"><br><br>
<label for="date">Birthday:</label><input type="datetime-local" name="" id="date"><br> <br>
<label for="language">Chose your language: </label> <br><br>
<input type="checkbox" name="Hindi" id="language" checked>Hindi
<input type="checkbox" name="English" id="language">English
<input type="checkbox" name="Urdu" id="language">Urdu <br><br>
<label for="gender">Gender:</label><br><br>
<input type="radio" name="gender" id="male" checked>Male
<input type="radio" name="gender" id="female">Female
<input type="radio" name="gender" id="other">Other <br><br>
<select name="" id="">
<option value="select" selected>Select</option>
<option value="maths">Maths</option>
<option value="physics">Physics</option>
<option value="chemistry">Chemistry</option>
<option value="biology">Biology</option>
</select><br><br>
<p>the optgroup tag is used to related options in a drop-down list: </p>
<label for="cars">Chose a Car: </label>
<select name="cars" id="cars">
<optgroup label="Swedish cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="XXX"></option>
</optgroup>
<optgroup label="German cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select> <br><br>
<input type="file" name="fileload" accept="image/*"> <br><br>
<h3>Button Control</h3>
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset" >
<input type="button" name="ok" value="OK" >
<input type="image" name="imagebutton" value="Screenshot (6).jpg" > <br><br>
<fieldset>
<legend> User Information </legend>
<label for="name">Enter Name </label> <br>
<input type="text" name="name" id="name"><br>
<label for="pass">Enter Password </label><br>
<input type="password" name="pass" id="pass"><br>
<input type="submit" value="Submit"><br>
</fieldset>
<label for="textarea">Review</label><br><textarea placeholder="write what is in your mind " id="textarea" cols="30" rows="5"></textarea><br><br>
<label for="submit"></label><input type="submit" value="Submit">
</form>
</div>
</body>
</html>