-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.html
More file actions
120 lines (89 loc) · 3 KB
/
Copy pathForm1.html
File metadata and controls
120 lines (89 loc) · 3 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
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
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
form {
display: flex;
background-color: rgb(193, 206, 248);
flex-direction: column;
width: 500px;
border: 4px solid rgb(31, 15, 15);
padding: 20px 20px 20px 20px;
}
h2 {
text-align: center;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
label {
font-size: 18px;
font-weight: bold;
margin-top: 7px;
}
input {
font-size: 18px;
font-weight: bold;
margin-top: 7px;
}
button {
margin-top: 7px;
background-color: rgb(1, 1, 158);
color: white;
border-radius: 13px;
height: 35px;
width: 50%;
align-self: center;
font-size: large;
padding: 7px;
}
button:hover {
background-color: rgb(0, 0, 255);
color: white;
transition: 0.5s;
}
p {
font-size: large
}
input {
margin: 4px 4ax 4px 4px;
}
textarea {
font-size: 20px;
}
.check {
margin-top: 18px;
color: blue;
}
</style>
</head>
<body>
<div>
<h2>Enter your details</h2>
<form>
<label for="name">Name : <input type="text" placeholder="User1" minlength="10" maxlength="30"
pattern="[A-Za-z0-9]*"> </label>
<label for="Age">Age :<input type="number" min="1" max="90"></label>
<label for="Gender" class="check">Gender</label>
<label for="male">Male : <input type="radio" name="n1"></label>
<label for="female">Female : <input type="radio" name="n1"></label>
<label for="other">other : <input type="radio" name="n1"> </label>
<label for="Hobbies" class="check">Hobbies</label>
<label for="Cricket">Cricket : <input type="checkbox"></label>
<label for="Football">Football : <input type="checkbox"></label>
<!-- some attributes are max , min , maxlength , minlength , readonly , disabled , pattern -->
<label for=""></label>
<label for="intro">Brief intro : </label>
<textarea cols="30" rows="8" required></textarea>
<button type="submit"> Submit</button>
</form>
</div>
</body>
</html>