forked from robnyman/robnyman.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
566 lines (459 loc) · 16.2 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
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 - Information and samples for HTML5 and related APIs - robertnyman.com</title>
<link rel="stylesheet" href="css/base.css" type="text/css" media="screen">
<!--[if lte IE 8]>
<script src="js/html5.js"></script>
<![endif]-->
</head>
<body id="index-page">
<div id="container">
<header role="banner">
<h1>HTML5 - Information and samples for HTML5 and related APIs</h1>
<p>In this web site I have collected various code samples and tests for HTML5 and APIs related to it.</p>
</header>
<div role="main">
<section id="main-content">
<h2>Test pages</h2>
<nav role="navigation">
<ul class="navigation">
<li><a href="html5-simple-example.html">HTML5 example with new elements and WAI-ARIA landmark roles</a></li>
<li><a href="canvas/canvas-demo.html">Canvas</a></li>
<li><a href="data-attributes/data-attributes.html">Custom data attributes</a></li>
<li><a href="fileapi/fileapi.html">File API for reading file information and selecting multiple files</a></li>
<li><a href="fileapi-upload/fileapi-upload.html">File API for choosing, uploading, previewing and seeing progress for multiple files</a></li>
<li><a href="geolocation/current-location.html">Geolocation - show current location</a></li>
<li><a href="geolocation/current-location-and-directions.html">Geolocation - show directions</a></li>
<li><a href="history-api/history-api.html">History API</a></li>
<li><a href="webstorage/webStorage.html">localStorage & sessionStorage (Web Storage)</a></li>
<li><a href="offline/offline.html">Offline Web Applications</a></li>
<li><a href="offline/online-offline-events.html">Online/Offline events</a></li>
<li><a href="offline/online-offline-polling.html">Online polling</a></li>
<li><a href="postMessage/postMessage.html">postMessage</a></li>
<li><a href="svg/svg.html">SVG (Scalable Vector Graphics)</a></li>
<li><a href="video/video-demo.html">Video</a></li>
<li><a href="webworkers/webWorkers.html">Web Workers</a></li>
</ul>
</nav>
<h2>Compatibility table</h2>
<table cellspacing="0">
<thead>
<tr>
<th>Feature</th>
<th class="last">Web browser support</th>
</tr>
</thead>
<tbody>
<tr class="even">
<th><a href="canvas/canvas-demo.html">Canvas</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 9.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.0+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 3.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 1.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 9.5+
</li>
</ul>
</td>
</tr>
<tr>
<th><a href="data-attributes/data-attributes.html">Custom data attributes</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> all
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> all
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> all
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> all
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> all
</li>
</ul>
</td>
</tr>
<tr class="even">
<th><a href="data-attributes/data-attributes.html">Custom data attributes - dataset property</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie-faded.png"> (none)
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 7.0
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 9.0
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 5.1
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 11.10
</li>
</ul>
</td>
</tr>
<tr>
<th><a href="fileapi/fileapi.html">File API</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie-faded.png"> (none)
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.6+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+ (partial support)
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 5.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 11.50
</li>
</ul>
</td>
</tr>
<tr class="even">
<th><a href="fileapi-upload/fileapi-upload.html">File API for choosing, uploading, previewing and seeing progress for multiple files</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie-faded.png"> (none)
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.6+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+ (partial support)
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 5.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 11.50 (partial support)
</li>
</ul>
</td>
</tr>
<tr>
<th><a href="geolocation/current-location.html">Geolocation</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 9.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3,5+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> (iPhone)
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 5.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 10.6+
</li>
</ul>
</td>
</tr>
<tr class="even">
<th><a href="history-api/history-api.html">History API</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie-faded.png"> (none)
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 4.0+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 5.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 5.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 11.50
</li>
</ul>
</td>
</tr>
<tr>
<th><a href="webstorage/webStorage.html">localStorage</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 8.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 2.0+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 2.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 10.5+
</li>
</ul>
</td>
</tr>
<tr>
<th><a href="webstorage/webStorage.html">sessionStorage</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 8.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.5+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 2.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 10.5+
</li>
</ul>
</td>
</tr>
<tr class="even">
<th><a href="offline/offline.html">Offline Web Applications</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie-faded.png"> (none)
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.5+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 1.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 10.6+
</li>
</ul>
</td>
</tr>
<tr>
<th><a href="offline/online-offline-events.html">Online/Offline events</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 8.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.5+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 13+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 5.1+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 9.5+
</li>
</ul>
</td>
</tr>
<tr class="even">
<th><a href="offline/online-offline-polling.html">Online polling</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 8.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.5+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 5.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 10.0+
</li>
</ul>
</td>
</tr>
<tr>
<th><a href="postMessage/postMessage.html">postMessage</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 8.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.0+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 1.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 9.5+
</li>
</ul>
</td>
</tr>
<tr class="even">
<th>
<a href="svg/svg.html">
SVG:<br>
- Inline as application/xhtml+xml or text/xml<br>
- Included as file via embed, object or iframe elements<br>
- Via JavaScript
</a>
</th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 9.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.0+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 3.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 1.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 9.5+
</li>
</ul>
</td>
</tr>
<tr>
<th>
<a href="svg/svg.html">
SVG:<br>
- Inline in regular HTML documents (text/html)
</a>
</th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 9.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 4.0+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 5.x+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 7.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera-faded.png"> (none)
</li>
</ul>
</td>
</tr>
<tr class="even">
<th><a href="video/video-demo.html">Video</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie.png"> 9.0+
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.5+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 1.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 10.5+
</li>
</ul>
<p>Notable here is that the main concern is codecs. Firefox and Opera support Ogg Theora and WebM, IE and Safari support H.264 and Google Chrome supports all three formats.</p>
</td>
</tr>
<tr>
<th><a href="webworkers/webWorkers.html">Web Workers</a></th>
<td>
<ul class="browsers">
<li class="browser">
<img alt="Internet Explorer" src="images/ie-faded.png"> (none)
</li>
<li class="browser">
<img alt="Firefox" src="images/firefox.png"> 3.5+
</li>
<li class="browser">
<img alt="Safari" src="images/safari.png"> 4.0+
</li>
<li class="browser">
<img alt="Google Chrome" src="images/google-chrome.png"> 5.0+
</li>
<li class="browser">
<img alt="Opera" src="images/opera.png"> 10.6+
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<footer id="page-footer" role="contentinfo">
Created by <a href="http://robertnyman.com/">Robert Nyman</a>
</footer>
</div>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-56164-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();
var sc_project=593937,
sc_partition=4,
sc_security="175a1fec";
</script>
<script src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c5.statcounter.com/counter.php?sc_project=593937&java=0&security=175a1fec" alt="free geoip"></a></div></noscript>
</body>
</html>