-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (104 loc) · 5.15 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<html lang="en">
<head>
<title>My app title</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/form.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
<body>
<main id="main">
<section class="container">
<form id="form" onsubmit="hello()">
<div class="input-group">
<label for="name">Name:</label>
<input type="search" id="name" name="user_name" list="mySuggestion">
<datalist id="mySuggestion">
<option>Apple</option>
<option>Banana</option>
<option>Blackberry</option>
<option>Blueberry</option>
<option>Lemon</option>
<option>Lychee</option>
<option>Peach</option>
<option>Pear</option>
</datalist>
</div>
<div class="input-group">
<label for="myNumber" >What is your favorite number?</label>
<input id="myNumber" type="number" max="10" min="1" value="11">
</div>
<div class="input-group">
<label for="myFruit">What is your favorite fruit? (With fallback)</label>
<input type="text" id="myFruit" name="fruit" list="fruitList" required>
<datalist id="fruitList">
<label for="suggestion">or pick a fruit</label>
<select id="suggestion" name="altFruit">
<option>Apple</option>
<option>Banana</option>
<option>Blackberry</option>
<option>Blueberry</option>
<option>Lemon</option>
<option>Lychee</option>
<option>Peach</option>
<option>Pear</option>
</select>
</datalist>
</div>
<div class="input-group">
<label for="mail">E-mail:</label>
<input type="email" id="mail" name="user_mail">
</div>
<div class="input-group">
<label for="msg">Message:</label>
<textarea id="msg" name="user_message" value="by default this element is filled with this text"></textarea>
</div>
<div class="input-group">
<label for="select">Select something:</label>
<select id="select" name="simple" required>
<option>Banana</option>
<option>Cherry</option>
<option>Lemon</option>
</select>
</div>
<fieldset>
<legend>What is your favorite meal?</legend>
<ul>
<li>
<label for="soup">Soup</label>
<input type="radio" checked id="soup" name="meal" value="soup">
</li>
<li>
<label for="curry">Curry</label>
<input type="radio" id="curry" name="meal" value="curry">
</li>
<li>
<label for="pizza">Pizza</label>
<input type="radio" id="pizza" name="meal" value="pizza">
</li>
</ul>
</fieldset>
<div class="input-group">
<label for="beans">How many beans can you eat?</label>
<input type="range" name="beans" id="beans" min="0" max="500" step="10">
</div>
<div class="input-group">
<label for="progress">Progress?</label>
<progress id="progress" max="100" value="75">75/100</progress>
</div>
<div class="input-group">
<label for="meter">Meter:</label>
<meter id="meter" min="0" max="100" value="75" low="33" high="66" optimum="50">75</meter>
</div>
<div class="button">
<button type="submit">Send your message</button>
</div>
<div class="button">
<button disabled>Save draft</button>
</div>
</form>
</section>
</main>
<script src="app.js"></script>
</body>
</html>