-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform_validation.html
More file actions
69 lines (51 loc) · 2.25 KB
/
form_validation.html
File metadata and controls
69 lines (51 loc) · 2.25 KB
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
<html>
<head><h1>Registration form</h1>
<style>
body{
background-color: rgb(161, 173, 173);
letter-spacing: normal;
margin-left: 200px;
margin-right: 200px;
}
form{
background-color: rgb(161, 173, 173);
margin-left: auto;
margin-right: 50;
}
</style>
</head><br><br><br>
<body>
<form action="form_script.html" onsubmit="saveData()">
<label for="fname" >first-name:</t></t><br>
<input type="text" name="fname" id="fname" placeholder="Enter first name" ><br><br>
<input type="text" name="lname" placeholder="Enter the last name"><br><br>
<label for="Email">Email:</label></t></t></t></t><br>
<input type="email" name="Email" id="email" placeholder="Enter your Email"><br><br>
<label for="password">password:</label><br>
<input type="password" name="password" id="password" minlength='6' maxlength='8'><br><br>
Age <br>
<input type="number" name="age" id="age"><br>
Date<br>
<input type="date" name="date" id="date"><br><br>
phone<br>
<input type="tel" name="phone" id="phone"><br>
Gender<br>
<input type="radio" name="gender" value="male">male<br>
<input type="radio" name="gender" value="Female">Female<br>
<input type="radio" name="gender" value="other">Other<br><br>
Subjects<br>
<input type="checkbox" name="sub" value="C">C<br>
<input type="checkbox" name="sub" value="java">java<br>
<input type="checkbox" name="sub" value="python">python<br><br>
upload file<br>
<input type="file" ><br><br>
website<br>
<input type="url"><br><br>
<input type="button" value="Click">
<input type="reset" value="Reset">
<input type="submit">
</form>
<script src="form.js">
</script>
</body>
</html>