-
Notifications
You must be signed in to change notification settings - Fork 462
/
Copy pathForm Using HTML
78 lines (64 loc) · 3.38 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
<!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>
</head>
<body>
<h1> <u>Html Form</u> </h1>
<form action="" >
<label for="name"> Name: </label><input type="text" name="" id="name" placeholder="enter the name of user "> <br><br>
<label for="passcode"> Password: </label> <input type="password" name="" id="passcode" placeholder="please enter password"><br><br>
<label for="email">Email: </label><input type="email" name="" id="email" placeholder="enter email "><br><br>
<label for="tel">Telephone Number:</label><input type="tel" name="" id="tel" placeholder="enter telephone "><br><br>
<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>
</body>
</html>