-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
88 lines (85 loc) · 4.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<script src="script.js"></script>
<title>Input Types</title>
</head>
<body>
<h1>All the HTML5 Input Types</h1>
<p>This page shows all the HTML5 input types. When you change any of them, its value will fill into a span to the
right of the input.</p>
<p>The submit button will clear the form.</p>
<p>See the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input">MDN page on input elements</a> for more information,</p>
<form id="input-form" action="" method="post">
<div>
<label for="button">button: </label>
<input type="button" value="Click here" onclick="getValue(this);">
<span id="buttonVal"></span>
</div>
<div><label for="checkbox">checkbox: </label><input type="checkbox" onchange="getValue(this);">
<span id="checkboxVal"></span>
</div>
<div><label for="color">color: </label><input type="color" value="#000000" onchange="getValue(this);">
<span id="colorVal"></span>
</div>
<div><label for="date">date: </label><input type="date" onchange="getValue(this);">
<span id="dateVal"></span>
</div>
<div><label for="datetime-local">datetime-local: </label><input type="datetime-local" onchange="getValue(this)" id="datetime">
<span id="datetime-localVal"></span>
</div>
<div><label for="email">email: </label><input type="email" onchange="getValue(this)" id="email">
<span id="emailVal"></span>
</div>
<div><label for="file">file: </label><input type="file" onchange="getValue(this)" id="file">
<span id="fileVal"></span>
</div>
<div><label for="hidden">hidden: </label><input type="hidden" onchange="getValue(this)">
<span id="hiddenVal"></span>
</div>
<div><label for="month">month: </label><input type="month" onchange="getValue(this)" id="month">
<span id="monthVal"></span>
</div>
<div><label for="number">number: </label><input type="number" min="0" max="100" onchange="getValue(this)" id="number">
<span id="numberVal"></span>
</div>
<div><label for="password">password: </label><input type="password" onchange="getValue(this)" id="password">
<span id="passwordVal"></span>
</div>
<div><label for="radio">radio: </label><input type="radio" onchange="getValue(this)" id="radio">
<span id="radioVal"></span>
</div>
<div><label for="range">range: </label><input type="range" min="0" max="100" onchange="getValue(this)" id="range">
<span id="rangeVal"></span>
</div>
<div><label for="search">search: </label><input type="search" onchange="getValue(this)" id="search">
<span id="searchVal"></span>
</div>
<div><label for="tel">tel: </label><input type="tel" onchange="getValue(this)" id="tel">
<span id="telVal"></span>
</div>
<div><label for="text">text: </label><input type="text" onchange="getValue(this)" id="text">
<span id="textVal"></span>
</div>
<div><label for="time">time: </label><input type="time" onchange="getValue(this)" id="time">
<span id="timeVal"></span>
</div>
<div><label for="url">url: </label><input type="url" onchange="getValue(this)" value="http://" id="url">
<span id="urlVal"></span>
</div>
<div><label for="week">week: </label><input type="week" onchange="getValue(this)" id="week">
<span id="weekVal"></span>
</div>
<div><label for="reset">reset: </label><input type="reset" value="reset" onclick="clearValues();">
<span id="resetVal"></span>
</div>
<div id="imageInput">image: <input type="image" src="img/button.png" alt="image of a button" value="it's a button" onclick="getValue(this);">
<span id="imageVal"></span>
</div>
<div><label for="submit">submit: </label><input type="submit" onclick="getValue(this);">
<span id="submitVal"></span>
</div>
</form>
</body>
</html>