-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (80 loc) · 1.84 KB
/
Copy pathindex.html
File metadata and controls
89 lines (80 loc) · 1.84 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Basic input types</title>
<style>
html, input {
font-family: sans-serif;
}
body {
width: 90%;
max-width: 500px;
margin: 0 auto;
}
form {
margin-top: 20px;
}
div {
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
label, input, button {
font-size: 14px;
line-height: 1.5
}
label {
text-align: right;
width: 30%;
margin-right: 2%;
}
input {
flex: auto;
}
button {
width: 70%;
margin: 0 auto;
}
</style>
</head>
<body>
<form>
<div>
<label for="text">text input type: </label>
<input type="text" id="text" name="text">
</div>
<div>
<label for="pwd">password input type: </label>
<input type="password" id="pwd" name="pwd">
</div>
<div>
<label for="email">email input type: </label>
<input type="email" id="email" name="email">
</div>
<div>
<label for="url">url input type: </label>
<input type="url" id="url" name="url">
</div>
<div>
<label for="number">number input type: </label>
<input type="number" id="number" name="number">
</div>
<div>
<label for="tel">tel input type: </label>
<input type="tel" id="tel" name="tel">
</div>
<div>
<label for="search">search input type: </label>
<input type="search" id="search" name="search">
</div>
<div>
<button>Submit</button>
</div>
</form>
<script>
</script>
</body>
</html>