-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (68 loc) · 2.41 KB
/
index.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>all the forms</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<h1>< all the forms ></h1>
<main>
<!------------------------------------------------------------------------ -->
<form>
<h2>Selection</h2>
<div>
<input type="checkbox" id="check">
<label for="check">checkbox</label>
</div>
<div>
<input type="radio" name="group"> <label>radio 1</label>
<input type="radio" name="group"> <label>radio 2</label>
<input type="radio" name="group"> <label>radio 3</label>
</div>
<select>
<option selected disabled hidden>-- select --</option>
<optgroup label="optgroup 1">
<option>option 1</option>
</optgroup>
<optgroup label="optgroup 2">
<option>option 2</option>
<option>option 3</option>
</optgroup>
</select>
<input type="range" min="0" max="10" step="1">
<div><button type="submit">submit</button> <button type="reset">reset</button></div>
</form>
<!------------------------------------------------------------------------ -->
<form>
<h2>Text</h2>
<input type="text" placeholder="text" required>
<textarea placeholder="textarea"></textarea>
<input type="number" placeholder="number">
<input type="email" placeholder="email">
<input type="tel" placeholder="tel xxx-xxx-xxxx" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}">
<input type="password" placeholder="password" minlength="8" maxlength="24">
<input type="search" placeholder="search">
<input type="url" placeholder="url">
<div><button type="submit">submit</button> <button type="reset">reset</button></div>
</form>
<!------------------------------------------------------------------------ -->
<form>
<h2>Rich Data</h2>
<input type="file" accept=".jpg" multiple="true">
<input type="color">
<input type="date">
<input type="time">
<!-- Poor support
<input type="datetime-local">
<input type="month">
<input type="week">
-->
<div><button type="submit">submit</button> <button type="reset">reset</button></div>
</form>
<!------------------------------------------------------------------------ -->
</main>
</body>
</html>