forked from jgthms/html-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
291 lines (268 loc) · 11.4 KB
/
Copy pathindex.html
File metadata and controls
291 lines (268 loc) · 11.4 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
---
layout: single
elementName: meter
---
<section id="meter" class="element">
<header class="element-header">
<nav class="element-links">
<span>
Type: <strong>block</strong>
</span>
<span>
Self-closing:
<strong>
No
</strong>
</span>
<a class="element-links-direct" href="{{site.url}}/element/meter/" data-element-name="meter" data-tooltip="Single page for this element">Permalink</a>
<a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="meter">Share</a>
<a target="_blank" href="http://caniuse.com/#feat=meter" data-tooltip="See on Can I use…" rel="external">Can I use</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/meter" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="element-name">
<a href="#meter">
<span>#</span>
meter
</a>
</h2>
<div class="element-description">
<p>Defines a <strong>horizontal meter</strong>.</p>
</div>
</header>
<div id="meter-example-0" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#meter-example-0-code">Copy</a>
</p>
<article class="example-preview">
<div class="example-output"><meter value="0.7">Progress</meter></div>
<div id="meter-example-0-code" class="example-code">{% highlight html %}<meter value="0.7">Progress</meter>{% endhighlight %}</div>
</article>
</div>
<div id="meter-example-1" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#meter-example-1-code">Copy</a>
</p>
<article class="example-preview">
<div class="example-output"><meter min="0" low="16" value="71" high="92" max="100">Alex</meter><br>
<meter min="0" low="16" value="16" high="92" max="100">Brandon</meter><br>
<meter min="0" low="16" value="40" high="92" max="100">Charlotte</meter><br>
<meter min="0" low="16" value="92" high="92" max="100">Sam</meter>
</div>
<div id="meter-example-1-code" class="example-code">{% highlight html %}<meter min="0" low="16" value="71" high="92" max="100">Alex</meter><br>
<meter min="0" low="16" value="16" high="92" max="100">Brandon</meter><br>
<meter min="0" low="16" value="40" high="92" max="100">Charlotte</meter><br>
<meter min="0" low="16" value="92" high="92" max="100">Sam</meter>
{% endhighlight %}</div>
</article>
</div>
<article id="meter-value" class="attribute attribute--required">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="value">
value
</code>
</h3>
<div class="attribute-description">
<p>Defines the value of the meter, on the scale defined by the <code>max</code> attribute.</p>
<strong class="attribute-is-required">Required.</strong>
</div>
</header>
<div class="attribute-values">
<article id="meter-value-07" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy value="0.7"" data-clipboard-text="value="0.7"">
"0.7"
</code>
</h4>
<div class="value-description">
<p>You can use <strong>decimal</strong> and <strong>negative</strong> numbers. It must be between the <code>min</code> and <code>max</code> values.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter value="0.7"></meter></div>
</aside>
</article>
<article id="meter-value-42" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy value="-42"" data-clipboard-text="value="-42"">
"-42"
</code>
</h4>
<div class="value-description">
<p>If you use a value that is lower than the minimum, the meter will be empty.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter value="-42"></meter></div>
</aside>
</article>
<article id="meter-value-63" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy value="63"" data-clipboard-text="value="63"">
"63"
</code>
</h4>
<div class="value-description">
<p>If you use a value that is higher than the maximum, the meter will be full.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter value="63"></meter></div>
</aside>
</article>
</div>
</article>
<article id="meter-max" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="max">
max
</code>
</h3>
<div class="attribute-description">
<p>Defines the maximum value possible on the meter.</p>
</div>
</header>
<div class="attribute-values">
<article id="meter-max-1" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy max="1"" data-clipboard-text="max="1"">
"1"
</code>
</h4>
<div class="value-description">
<strong class="value-is-default">Default.</strong>
<p>You can use <strong>decimal</strong> and <strong>negative</strong> numbers.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter value="0.7" max="1"></meter></div>
</aside>
</article>
<article id="meter-max-100" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy max="100"" data-clipboard-text="max="100"">
"100"
</code>
</h4>
<div class="value-description">
<p>You can use <strong>decimal</strong> and <strong>negative</strong> numbers.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter value="40" max="100"></meter></div>
</aside>
</article>
</div>
</article>
<article id="meter-min" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="min">
min
</code>
</h3>
<div class="attribute-description">
<p>Defines the minimum value possible on the meter.</p>
</div>
</header>
<div class="attribute-values">
<article id="meter-min-0" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy min="0"" data-clipboard-text="min="0"">
"0"
</code>
</h4>
<div class="value-description">
<strong class="value-is-default">Default.</strong>
<p>You can use <strong>decimal</strong> and <strong>negative</strong> numbers.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter min="0"></meter></div>
</aside>
</article>
<article id="meter-min-150" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy min="-150"" data-clipboard-text="min="-150"">
"-150"
</code>
</h4>
<div class="value-description">
<p>You can use <strong>decimal</strong> and <strong>negative</strong> numbers.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter min="-150"></meter></div>
</aside>
</article>
</div>
</article>
<article id="meter-low" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="low">
low
</code>
</h3>
<div class="attribute-description">
<p>Defines the lowest value across the range defined by the meter.</p>
</div>
</header>
<div class="attribute-values">
<article id="meter-low-016" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy low="0.16"" data-clipboard-text="low="0.16"">
"0.16"
</code>
</h4>
<div class="value-description">
<p>The value must be higher than <code>min</code> and lower than <code>high</code>.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter low="0.16"></meter></div>
</aside>
</article>
</div>
</article>
<article id="meter-high" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="high">
high
</code>
</h3>
<div class="attribute-description">
<p>Defines the highest value across the range defined by the meter.</p>
</div>
</header>
<div class="attribute-values">
<article id="meter-high-092" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy high="0.92"" data-clipboard-text="high="0.92"">
"0.92"
</code>
</h4>
<div class="value-description">
<p>The value must be lower than <code>max</code> and higher than <code>low</code>.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meter high="0.92"></meter></div>
</aside>
</article>
</div>
</article>
</section>