-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
46 lines (43 loc) · 1.16 KB
/
Copy pathform.html
File metadata and controls
46 lines (43 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
small{
color: red;
font-size: 12px;
}
#hide{
display: none;
}
</style>
<body>
<form >
<!-- <input required minlength="3" maxlength="10" id="name" type="text" placeholder="name" > -->
<!-- PATTERN ATTRIBUTE -->
<input pattern="[a-z]{3,8}" id="name" type="text" placeholder="name" >
<div id="hide">
<br>
<small>Name > 2 Characters</small>
</div>
<br><br>
<input type="email" placeholder="email">
<br><br>
<input type="password" placeholder="password">
<br><br>
<select >
<option value="male">male</option>
<option value="female">female</option>
<option value="others">others</option>
</select>
<br><br>
<textarea placeholder="tell us about urself"></textarea>
<br><br>
<input type="submit">
</form>
<script src="form.js"></script>
</body>
</html>