-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathform validation.html
More file actions
41 lines (41 loc) · 1.02 KB
/
form validation.html
File metadata and controls
41 lines (41 loc) · 1.02 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
<!DOCTYPE html>
<head>
<style>
.abc{
background:rgba(255, 0, 0, 0.25);
margin:0 500px 0 500px;
text-align:left;
}
input{
border-radius:0px;
border-color:black;
}
legend{
font-size:40px;
}
textarea{
border-radius:10px;
}
</style>
</head>
<body>
<form>
<fieldset class="abc">
<legend align="center">Introduction</legend>
Name: <input type="text" id="name" minlenth="15" required><br><br>
Mobile No: <input type="text" id="mob" minlength="10" maxlength="10" required><br><br>
Email: <input type="email" id="email" required><br><br>
Password: <input type="password" id="pass" maxlength="8" required><br><br>
Gender:<br>
<input type="radio" name="gender" >Male<br>
<input type="radio" name="gender">Female<br><br>
Hobbies:<br>
<input type="checkbox" >Watching <br>
<input type="checkbox" >Travelling <br>
<input type="checkbox" >Badminton <br>
About Me: <textarea rows="4" cols="50"></textarea> <br>
<input type="submit" value="Submit" name="submit" id="btn"><br>
</fieldset>
</form>
<body>
</html>