-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTML-input-size-length.html
57 lines (49 loc) · 1.31 KB
/
HTML-input-size-length.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Input Elements </title>
<style>
.container {
/* width: 300px;
margin: 0 auto; */
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
input[type="password"] {
margin-left: 2.1rem;
}
.pin {
margin-left: 9px;
}
button {
margin: 0 auto;
display: block;
}
</style>
</head>
<body>
<div class="container">
<form action="">
<div>
<div>
<label for="uname">
Choose a User Name:
</label>
<input type="text" placeholder="lower case,one word" minlength="5" maxlength="10" size="16" name="name" required>
</div>
<br>
<div>
<label for="pin" class="pin">Enter your Pin:</label>
<input type="password" name="pin" id="" size="10">
</div>
</div>
<br>
<div> <button>Submit</button></div>
</form>
</div>
</body>
</html>