-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeautiful
803 lines (778 loc) · 42 KB
/
beautiful
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
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>W3Schools Online Web Tutorials</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Keywords" content="HTML,CSS,JavaScript,DOM,jQuery,PHP,SQL,XML,Python,Bootstrap,Web,W3CSS,W3C,tutorials,programming,development,training,learning,quiz,primer,lessons,reference,examples,source code,colors,demos,tips,w3c">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="w3css/4/w3.css">
<script>
(function() {
var cx = '012971019331610648934:m2tou3_miwy';
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = 'https://www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3855518-1', 'auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
<style>
/* W3Schools Font Logo */
.w3schools-logo {
font-family:fontawesome;
text-decoration:none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size:37px;
letter-spacing:3px;
color:#555555;
display:block;
position:relative;
}
.w3schools-logo .dotcom {color:#4CAF50;}
@font-face {
font-family:'fontawesome';
src:url('../lib/fonts/fontawesome.eot?14663396#iefix') format('embedded-opentype'),
url('../lib/fonts/fontawesome.woff?14663396') format('woff'),
url('../lib/fonts/fontawesome.ttf?14663396') format('truetype'),
url('../lib/fonts/fontawesome.svg?14663396#fontawesome') format('svg');
font-style:normal;
}
.fa {
display:inline-block;
font:normal normal normal 14px/1 FontAwesome;
font-size:20px;
text-rendering:auto;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
transform:translate(0,0);
}
.fa-home:before {content:'\e800';}
.fa-menu:before {content: '\f0c9';}
.fa-globe:before {content:'\e801';}
.fa-search:before {content:'\e802'; }
.fa-thumbs-o-up:before {content:'\e803';}
.fa-left-open:before {content:'\e804';}
.fa-right-open:before {content:'\e805';}
.fa-caret-down:before {content:'\e809';}
.fa-caret-up:before {content:'\e80a';}
/* Google */
#nav_translate, #nav_search {display:none;}
#nav_translate a {display:inline;}
#googleSearch {color:#000000;}
.searchdiv {
max-width:400px;
margin:auto;
text-align:left;
font-size:16px;
}
div.cse .gsc-control-cse, div.gsc-control-cse {
background-color:transparent;
border:none;
padding:0px;
margin:0px;
}
td.gsc-search-button input.gsc-search-button {background-color:#555555;border-color:#555555;}
input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus, .gsc-search-button {
box-sizing:content-box;
line-height:normal;
}
.gsc-tabsArea div {overflow:visible;}
.gsst_a .gscb_a {margin-top:3px;}
/* Customize W3.CSS */
#nav_tutorials,#nav_references,#nav_examples {
display:none;
padding-bottom:40px;
position:absolute;
width:100%;
z-index:99 !important;
}
.w3-col .w3-button {
margin:5px 5px 5px 0;
font-size:16px;
}
.w3-col.l4 .w3-card-2 {
padding:15px 10px;
height:260px;
}
.w3-theme {color:#fff !important;background-color:#4CAF50 !important;}
.w3-main {margin-left:230px;}
.w3-sidebar {
z-index:3;
width:230px;
overflow:hidden !important;
position:absolute !important;
margin-bottom:-155px;
}
.w3-sidebar .w3-bar-block .w3-bar-item{
padding:0 16px;
font-size:16px;
}
.w3-bar {
position:relative;
z-index:4;
font-size:17px;
}
.w3-wide {
font-family:"Segoe UI",Arial,sans-serif;
}
h1 {
font-size:80px;
color:#555555;
margin:2px 0 -20px 0 !important;
}
.certoverlay {
position:absolute;
top:0;
background-color:rgba(0, 0, 0, 0.5);
width:100%;
text-align:center;
padding:15px
}
.certoverlay h2 {
margin:10px 0 0 0;
font-size:36px;
}
.certoverlay h3 {
margin:0 0 10px 0;
}
@media screen and (min-width:769px){.w3-sidebar.w3-collapse{display:block !important;}}
@media screen and (min-width:769px){#myAccordion,.hidesm{display:none !important;}}
@media screen and (min-width:769px){.w3-main{margin-left:230px !important;}.w3-bar-block .w3-button{padding:0;}}
@media screen and (max-width:768px){.w3-sidebar.w3-collapse,.barex,.navex{display:none !important;}.w3-bar-block .w3-bar-item{text-align:center !important;padding:2px 0;}h1,.w3-jumbo{font-size:60px !important;}}
@media screen and (max-width:545px){.certoverlay{padding:10px;height:100%;}.certoverlay h3{font-size:15px;}}
@media screen and (max-width:380px){.getcert{position:absolute;text-align:center;left:50%;bottom:50%;font-size:13px;}}
@media only screen and (max-device-width: 1366px){.w3-hide-device{display:none;}}
</style>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body style="position:relative;min-height:100%;">
<div class="w3-row w3-white w3-padding w3-hide-medium w3-hide-small" style="margin-top:5px;">
<div class="w3-half notranslate" style="margin:4px 0 6px 0"><a class='w3schools-logo' href='//www.w3schools.com'>w3schools<span class='dotcom'>.com</span></a></div>
<div class="w3-half w3-margin-top w3-wide w3-hide-medium w3-hide-small">
<div class="w3-right" style="position:relative;top:5px;">THE WORLD'S LARGEST WEB DEVELOPER SITE</div>
</div>
</div>
<div class="w3-hide-large w3-hide-large w3-padding-16">
<div class="w3-center notranslate"><a class='w3schools-logo' href='//www.w3schools.com'>w3schools<span class='dotcom'>.com</span></a></div>
<div class="w3-center w3-wide w3-hide-small" style="margin:14px 0 -5px 0">THE WORLD'S LARGEST WEB DEVELOPER SITE</div>
</div>
<div style='display:none;position:absolute;z-index:6;right:60px;height:57px;padding-top:12px;padding-right:20px;background-color:#4CAF50;' id='googleSearch'><div class='gcse-search'></div></div>
<div style='display:none;position:absolute;z-index:5;right:120px;height:57px;background-color:#4CAF50;text-align:right;padding-top:15px;' id='google_translate_element'></div>
<div class="w3-bar w3-theme w3-card-2 w3-wide notranslate">
<a class="w3-bar-item w3-button w3-hover-white w3-padding-16 hidesm" href="javascript:void(0)" onclick="w3_open()"><i class='fa'></i></a>
<a class="w3-bar-item w3-button barex w3-hover-white w3-padding-16" href="javascript:void(0)" onclick="w3_open_nav('tutorials')" id="navbtn_tutorials">TUTORIALS <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style="display:none"></i></a>
<a class="w3-bar-item w3-button barex w3-hover-white w3-padding-16" href="javascript:void(0)" onclick="w3_open_nav('references')" id="navbtn_references">REFERENCES <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style="display:none"></i></a>
<a class="w3-bar-item w3-button barex w3-hover-white w3-padding-16" href="javascript:void(0)" onclick="w3_open_nav('examples')" id="navbtn_examples">EXAMPLES <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style="display:none"></i></a>
<div class="w3-right">
<a class="w3-bar-item w3-button w3-hover-white w3-padding-16 w3-right" href="javascript:void(0)" onclick="open_search(this)" title='Search W3Schools'><i class='fa'></i></a>
<a class="w3-bar-item w3-button w3-hover-white w3-padding-16 w3-right" href="javascript:void(0)" onclick="open_translate(this)" title='Translate W3Schools'><i class='fa'></i></a>
</div>
</div>
<nav class="w3-sidebar w3-collapse w3-white w3-card-2" id="mySidenav">
<div class="w3-bar-block">
<div class="w3-container">
<h4 class="w3-margin-top">HTML and CSS</h4>
</div>
<a class="w3-bar-item w3-button" href="/html/default.asp">Learn HTML</a>
<a class="w3-bar-item w3-button" href="/css/default.asp">Learn CSS</a>
<a class="w3-bar-item w3-button" href="/w3css/default.asp">Learn W3.CSS</a>
<a class="w3-bar-item w3-button" href="/colors/default.asp">Learn Colors</a>
<a class="w3-bar-item w3-button" href="/bootstrap/default.asp">Learn Bootstrap 3</a>
<a class="w3-bar-item w3-button" href="/bootstrap4/default.asp">Learn Bootstrap 4</a>
<a class="w3-bar-item w3-button" href="/icons/default.asp">Learn Icons</a>
<a class="w3-bar-item w3-button" href="/graphics/default.asp">Learn Graphics</a>
<a class="w3-bar-item w3-button" href="/howto/default.asp">Learn How To</a>
<div class="w3-container">
<h4 class="w3-margin-top">JavaScript</h4>
</div>
<a class="w3-bar-item w3-button" href="/js/default.asp">Learn JavaScript</a>
<a class="w3-bar-item w3-button" href="/jquery/default.asp">Learn jQuery</a>
<a class="w3-bar-item w3-button" href="/angular/default.asp">Learn AngularJS</a>
<a class="w3-bar-item w3-button" href="/js/js_json_intro.asp">Learn JSON</a>
<a class="w3-bar-item w3-button" href="/js/js_ajax_intro.asp">Learn AJAX</a>
<a class="w3-bar-item w3-button" href="/w3js/default.asp">Learn W3.JS</a>
<div class="w3-container">
<h4 class="w3-margin-top">Server Side</h4>
</div>
<a class="w3-bar-item w3-button" href="/sql/default.asp">Learn SQL</a>
<a class="w3-bar-item w3-button" href="/php/default.asp">Learn PHP</a>
<a class="w3-bar-item w3-button" href="/python/default.asp">Learn Python</a>
<a class="w3-bar-item w3-button" href="/java/default.asp">Learn Java</a>
<a class="w3-bar-item w3-button" href='/asp/default.asp'>Learn ASP</a>
<a class="w3-bar-item w3-button" href='/nodejs/default.asp'>Learn Node.js</a>
<a class="w3-bar-item w3-button" href='/nodejs/nodejs_raspberrypi.asp'>Learn Raspberry Pi</a>
<div class="w3-container">
<h4 class="w3-margin-top">Web Building</h4>
</div>
<a class="w3-bar-item w3-button" href="/w3css/w3css_templates.asp">Web Templates</a>
<a class="w3-bar-item w3-button" href="/browsers/default.asp">Web Statistics</a>
<a class="w3-bar-item w3-button" href="/cert/default.asp">Web Certificates</a>
<a class="w3-bar-item w3-button" href='/tryit/default.asp'>Web Editor</a>
<a class="w3-bar-item w3-button" href="/whatis/default.asp">Web Development</a>
<div class="w3-container">
<h4 class="w3-margin-top">XML Tutorials</h4>
</div>
<a class="w3-bar-item w3-button" href="/xml/default.asp">Learn XML</a>
<a class="w3-bar-item w3-button" href='/xml/ajax_intro.asp'>Learn XML AJAX</a>
<a class="w3-bar-item w3-button" href="/xml/dom_intro.asp">Learn XML DOM</a>
<a class="w3-bar-item w3-button" href='/xml/xml_dtd_intro.asp'>Learn XML DTD</a>
<a class="w3-bar-item w3-button" href='/xml/schema_intro.asp'>Learn XML Schema</a>
<a class="w3-bar-item w3-button" href="/xml/xsl_intro.asp">Learn XSLT</a>
<a class="w3-bar-item w3-button" href='/xml/xpath_intro.asp'>Learn XPath</a>
<a class="w3-bar-item w3-button" href='/xml/xquery_intro.asp'>Learn XQuery</a>
<div class="w3-container">
<h4 class="w3-margin-top">References</h4>
</div>
<a class="w3-bar-item w3-button" href='/tags/default.asp'>HTML Reference</a>
<a class="w3-bar-item w3-button" href='/cssref/default.asp'>CSS Reference</a>
<a class="w3-bar-item w3-button" href='/jsref/default.asp'>JS Reference</a>
<a class="w3-bar-item w3-button" href='/sql/sql_ref_keywords.asp'>SQL Reference</a>
<a class="w3-bar-item w3-button" href='/php/php_ref_overview.asp'>PHP Reference</a>
<a class="w3-bar-item w3-button" href='/jquery/jquery_ref_overview.asp'>jQuery Reference</a>
<a class="w3-bar-item w3-button" href='/python/python_reference.asp'>Python Reference</a>
<a class="w3-bar-item w3-button" href='/bootstrap//bootstrap_ref_all_classes.asp'>Bootstrap Reference</a>
<a class="w3-bar-item w3-button" href='/w3css/w3css_references.asp'>W3.CSS Reference</a>
<a class="w3-bar-item w3-button" href='/charsets/default.asp'>UTF-8 Reference</a>
<div class="w3-container">
<h4 class="w3-margin-top">Exercises</h4>
</div>
<a class="w3-bar-item w3-button" href='/html/html_exercises.asp'>HTML Exercises</a>
<a class="w3-bar-item w3-button" href='/css/css_exercises.asp'>CSS Exercises</a>
<a class="w3-bar-item w3-button" href='/js/js_exercises.asp'>JavaScript Exercises</a>
<a class="w3-bar-item w3-button" href='/sql/sql_exercises.asp'>SQL Exercises</a>
<a class="w3-bar-item w3-button" href='/php/php_exercises.asp'>PHP Exercises</a>
<a class="w3-bar-item w3-button" href='/python/python_exercises.asp'>Python Exercises</a>
</div>
</nav>
<div id='myAccordion' class="w3-card-2 w3-light-grey w3-center w3-hide-large" style="display:none;cursor:default">
<a href="javascript:void(0)" onclick="w3_close()" class="w3-button w3-xlarge w3-right">×</a><br>
<div class="w3-container w3-padding-32">
<a class="w3-button w3-block w3-large w3-wide" onclick="open_xs_menu('tutorials');" href="javascript:void(0);">TUTORIALS <i class='fa fa-caret-down'></i></a>
<div id="sectionxs_tutorials" class="w3-white w3-show"></div>
<a class="w3-button w3-block w3-large w3-wide" onclick="open_xs_menu('references')" href="javascript:void(0);">REFERENCES <i class='fa fa-caret-down'></i></a>
<div id="sectionxs_references" class="w3-white w3-show"></div>
<a class="w3-button w3-block w3-large w3-wide" onclick="open_xs_menu('examples')" href="javascript:void(0);">EXAMPLES <i class='fa fa-caret-down'></i></a>
<div id="sectionxs_examples" class="w3-white w3-show"></div>
</div>
</div>
<nav id="nav_tutorials" class="w3-light-grey w3-card-2 w3-hide-small navex">
<span onclick="w3_close_nav('tutorials')" class="w3-button w3-xlarge w3-display-topright barex">×</span><br>
<div class="w3-row-padding w3-bar-block">
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">HTML and CSS</h3>
<a class="w3-bar-item w3-button" href="/html/default.asp">Learn HTML</a>
<a class="w3-bar-item w3-button" href="/css/default.asp">Learn CSS</a>
<a class="w3-bar-item w3-button" href="/w3css/default.asp">Learn W3.CSS</a>
<a class="w3-bar-item w3-button" href="/colors/default.asp">Learn Colors</a>
<a class="w3-bar-item w3-button" href="/bootstrap/default.asp">Learn Bootstrap 3</a>
<a class="w3-bar-item w3-button" href="/bootstrap4/default.asp">Learn Bootstrap 4</a>
<a class="w3-bar-item w3-button" href="/icons/default.asp">Learn Icons</a>
<a class="w3-bar-item w3-button" href="/graphics/default.asp">Learn Graphics</a>
<a class="w3-bar-item w3-button" href='/graphics/svg_intro.asp'>Learn SVG</a>
<a class="w3-bar-item w3-button" href='/graphics/canvas_intro.asp'>Learn Canvas</a>
<a class="w3-bar-item w3-button" href="/howto/default.asp">Learn How To</a>
<div class="w3-hide-large w3-hide-small">
<h3 class="w3-margin-top">XML Tutorials</h3>
<a class="w3-bar-item w3-button" href="/xml/default.asp">Learn XML</a>
<a class="w3-bar-item w3-button" href='/xml/ajax_intro.asp'>Learn XML AJAX</a>
<a class="w3-bar-item w3-button" href="/xml/dom_intro.asp">Learn XML DOM</a>
<a class="w3-bar-item w3-button" href='/xml/xml_dtd_intro.asp'>Learn XML DTD</a>
<a class="w3-bar-item w3-button" href='/xml/schema_intro.asp'>Learn XML Schema</a>
<a class="w3-bar-item w3-button" href="/xml/xsl_intro.asp">Learn XSLT</a>
<a class="w3-bar-item w3-button" href='/xml/xpath_intro.asp'>Learn XPath</a>
<a class="w3-bar-item w3-button" href='/xml/xquery_intro.asp'>Learn XQuery</a>
</div>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">JavaScript</h3>
<a class="w3-bar-item w3-button" href="/js/default.asp">Learn JavaScript</a>
<a class="w3-bar-item w3-button" href="/jquery/default.asp">Learn jQuery</a>
<a class="w3-bar-item w3-button" href="/angular/default.asp">Learn AngularJS</a>
<a class="w3-bar-item w3-button" href="/js/js_json_intro.asp">Learn JSON</a>
<a class="w3-bar-item w3-button" href="/js/js_ajax_intro.asp">Learn AJAX</a>
<a class="w3-bar-item w3-button" href="/w3js/default.asp">Learn W3.JS</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">Server Side</h3>
<a class="w3-bar-item w3-button" href="/sql/default.asp">Learn SQL</a>
<a class="w3-bar-item w3-button" href="/php/default.asp">Learn PHP</a>
<a class="w3-bar-item w3-button" href="/python/default.asp">Learn Python</a>
<a class="w3-bar-item w3-button" href="/java/default.asp">Learn Java</a>
<a class="w3-bar-item w3-button" href='/asp/default.asp'>Learn ASP</a>
<a class="w3-bar-item w3-button" href='/nodejs/default.asp'>Learn Node.js</a>
<a class="w3-bar-item w3-button" href='/nodejs/nodejs_raspberrypi.asp'>Learn Raspberry Pi</a>
<h3 class="w3-margin-top">Web Building</h3>
<a class="w3-bar-item w3-button" href="/w3css/w3css_templates.asp">Web Templates</a>
<a class="w3-bar-item w3-button" href="/browsers/default.asp">Web Statistics</a>
<a class="w3-bar-item w3-button" href="/cert/default.asp">Web Certificates</a>
<a class="w3-bar-item w3-button" href='/tryit/default.asp'>Web Editor</a>
<a class="w3-bar-item w3-button" href="/whatis/default.asp">Web Development</a>
</div>
<div class="w3-col l3 m6 w3-hide-medium">
<h3 class="w3-margin-top">XML Tutorials</h3>
<a class="w3-bar-item w3-button" href="/xml/default.asp">Learn XML</a>
<a class="w3-bar-item w3-button" href='/xml/ajax_intro.asp'>Learn XML AJAX</a>
<a class="w3-bar-item w3-button" href="/xml/dom_intro.asp">Learn XML DOM</a>
<a class="w3-bar-item w3-button" href='/xml/xml_dtd_intro.asp'>Learn XML DTD</a>
<a class="w3-bar-item w3-button" href='/xml/schema_intro.asp'>Learn XML Schema</a>
<a class="w3-bar-item w3-button" href="/xml/xsl_intro.asp">Learn XSLT</a>
<a class="w3-bar-item w3-button" href='/xml/xpath_intro.asp'>Learn XPath</a>
<a class="w3-bar-item w3-button" href='/xml/xquery_intro.asp'>Learn XQuery</a>
</div>
</div>
<br class="hidesm">
</nav>
<nav id="nav_references" class="w3-light-grey w3-card-2 w3-hide-small navex">
<span onclick="w3_close_nav('references')" class="w3-button w3-xlarge w3-display-topright barex">×</span><br>
<div class="w3-row-padding w3-bar-block">
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">HTML</h3>
<a class="w3-bar-item w3-button" href='/tags/default.asp'>HTML Tag Reference</a>
<a class="w3-bar-item w3-button" href='/tags/ref_eventattributes.asp'>HTML Event Reference</a>
<a class="w3-bar-item w3-button" href='/colors/default.asp'>HTML Color Reference</a>
<a class="w3-bar-item w3-button" href='/tags/ref_attributes.asp'>HTML Attribute Reference</a>
<a class="w3-bar-item w3-button" href='/tags/ref_canvas.asp'>HTML Canvas Reference</a>
<a class="w3-bar-item w3-button" href='/graphics/svg_reference.asp'>HTML SVG Reference</a>
<a class="w3-bar-item w3-button" href='/graphics/google_maps_reference.asp'>Google Maps Reference</a>
<h3 class="w3-margin-top">CSS</h3>
<a class="w3-bar-item w3-button" href='/cssref/default.asp'>CSS Reference</a>
<a class="w3-bar-item w3-button" href='/cssref/css3_browsersupport.asp'>CSS Browser Support</a>
<a class="w3-bar-item w3-button" href='/cssref/css_selectors.asp'>CSS Selector Reference</a>
<a class="w3-bar-item w3-button" href='/w3css/w3css_references.asp'>W3.CSS Reference</a>
<a class="w3-bar-item w3-button" href='/bootstrap/bootstrap_ref_all_classes.asp'>Bootstrap Reference</a>
<a class="w3-bar-item w3-button" href='/icons/icons_reference.asp'>Icon Reference</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">JavaScript</h3>
<a class="w3-bar-item w3-button" href='/jsref/default.asp'>JavaScript Reference</a>
<a class="w3-bar-item w3-button" href='/jsref/default.asp'>HTML DOM Reference</a>
<a class="w3-bar-item w3-button" href='/jquery/jquery_ref_overview.asp'>jQuery Reference</a>
<a class="w3-bar-item w3-button" href='/angular/angular_ref_directives.asp'>AngularJS Reference</a>
<a class="w3-bar-item w3-button" href="/w3js/w3js_references.asp">W3.JS Reference</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">Server Side</h3>
<a class="w3-bar-item w3-button" href='/php/php_ref_overview.asp'>PHP Reference</a>
<a class="w3-bar-item w3-button" href='/sql/sql_ref_keywords.asp'>SQL Reference</a>
<a class="w3-bar-item w3-button" href='/python/python_reference.asp'>Python Reference</a>
<a class="w3-bar-item w3-button" href='/asp/asp_ref_response.asp'>ASP Reference</a>
<h3 class="w3-margin-top">XML</h3>
<a class="w3-bar-item w3-button" href='/xml/dom_nodetype.asp'>XML DOM Reference</a>
<a class="w3-bar-item w3-button" href='/xml/dom_http.asp'>XML Http Reference</a>
<a class="w3-bar-item w3-button" href='/xml/xsl_elementref.asp'>XSLT Reference</a>
<a class="w3-bar-item w3-button" href='/xml/schema_elements_ref.asp'>XML Schema Reference</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">Character Sets</h3>
<a class="w3-bar-item w3-button" href='/charsets/default.asp'>HTML Character Sets</a>
<a class="w3-bar-item w3-button" href='/charsets/ref_html_ascii.asp'>HTML ASCII</a>
<a class="w3-bar-item w3-button" href='/charsets/ref_html_ansi.asp'>HTML ANSI</a>
<a class="w3-bar-item w3-button" href='/charsets/ref_html_ansi.asp'>HTML Windows-1252</a>
<a class="w3-bar-item w3-button" href='/charsets/ref_html_8859.asp'>HTML ISO-8859-1</a>
<a class="w3-bar-item w3-button" href='/charsets/ref_html_symbols.asp'>HTML Symbols</a>
<a class="w3-bar-item w3-button" href='/charsets/ref_html_utf8.asp'>HTML UTF-8</a>
</div>
</div>
<br class="hidesm">
</nav>
<nav id="nav_examples" class="w3-light-grey w3-card-2 w3-hide-small navex">
<span onclick="w3_close_nav('examples')" class="w3-button w3-xlarge w3-display-topright barex">×</span><br>
<div class="w3-row-padding w3-bar-block">
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">HTML and CSS</h3>
<a class="w3-bar-item w3-button" href='/html/html_examples.asp'>HTML Examples</a>
<a class="w3-bar-item w3-button" href='/html/html_exercises.asp'>HTML Exercises</a>
<a class="w3-bar-item w3-button" href='/css/css_examples.asp'>CSS Examples</a>
<a class="w3-bar-item w3-button" href='/css/css_exercises.asp'>CSS Exercises</a>
<a class="w3-bar-item w3-button" href='/w3css/w3css_examples.asp'>W3.CSS Examples</a>
<a class="w3-bar-item w3-button" href='/w3css/w3css_templates.asp'>W3.CSS Templates</a>
<a class="w3-bar-item w3-button" href='/bootstrap/bootstrap_examples.asp'>Bootstrap Examples</a>
<a class="w3-bar-item w3-button" href='/howto/default.asp'>How To Examples</a>
<a class="w3-bar-item w3-button" href='/graphics/svg_examples.asp'>SVG Examples</a>
<div class="w3-hide-large w3-hide-small">
<h3 class="w3-margin-top">Quizzes</h3>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=HTML" target="_top">HTML Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=CSS" target="_top">CSS Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=JavaScript" target="_top">JavaScript Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=Bootstrap" target="_top">Bootstrap Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=jQuery" target="_top">jQuery Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=PHP" target="_top">PHP Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=SQL" target="_top">SQL Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=XML" target="_top">XML Quiz</a>
</div>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">JavaScript</h3>
<a class="w3-bar-item w3-button" href="/js/js_examples.asp" target="_top">JavaScript Examples</a>
<a class="w3-bar-item w3-button" href='/js/js_exercises.asp'>JavaScript Exercises</a>
<a class="w3-bar-item w3-button" href="/js/js_dom_examples.asp" target="_top">HTML DOM Examples</a>
<a class="w3-bar-item w3-button" href="/jquery/jquery_examples.asp" target="_top">jQuery Examples</a>
<a class="w3-bar-item w3-button" href="/angular/angular_examples.asp" target="_top">AngularJS Examples</a>
<a class="w3-bar-item w3-button" href="/js/js_ajax_examples.asp" target="_top">AJAX Examples</a>
<a class="w3-bar-item w3-button" href="/w3js/w3js_examples.asp" target="_top">W3.JS Examples</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">Server Side</h3>
<a class="w3-bar-item w3-button" href="/php/php_examples.asp" target="_top">PHP Examples</a>
<a class="w3-bar-item w3-button" href="/asp/asp_examples.asp" target="_top">ASP Examples</a>
<a class="w3-bar-item w3-button" href='/sql/sql_exercises.asp' target="_top">SQL Exercises</a>
<a class="w3-bar-item w3-button" href='/python/python_exercises.asp' target="_top">Python Exercises</a>
<h3 class="w3-margin-top">XML</h3>
<a class="w3-bar-item w3-button" href="/xml/xml_examples.asp" target="_top">XML Examples</a>
<a class="w3-bar-item w3-button" href="/xml/xsl_examples.asp" target="_top">XSLT Examples</a>
<a class="w3-bar-item w3-button" href="/xml/xpath_examples.asp" target="_top">XPath Examples</a>
<a class="w3-bar-item w3-button" href="/xml/schema_example.asp" target="_top">XML Schema Examples</a>
<a class="w3-bar-item w3-button" href="/xml/ajax_examples.asp" target="_top">AJAX Examples</a>
<a class="w3-bar-item w3-button" href="/graphics/svg_examples.asp" target="_top">SVG Examples</a>
</div>
<div class="w3-col l3 m6 w3-hide-medium">
<h3 class="w3-margin-top">Quizzes</h3>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=HTML" target="_top">HTML Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=CSS" target="_top">CSS Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=JavaScript" target="_top">JavaScript Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=Bootstrap" target="_top">Bootstrap Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=jQuery" target="_top">jQuery Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=PHP" target="_top">PHP Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=SQL" target="_top">SQL Quiz</a>
<a class="w3-bar-item w3-button" href="/quiztest/quiztest.asp?Qtest=XML" target="_top">XML Quiz</a>
</div>
</div>
<br class="hidesm">
</nav>
<!-- MAIN -->
<div class="w3-main">
<div class="w3-row w3-margin-bottom">
<div class="w3-col l6 w3-center" style="padding:3%">
<h1>HTML</h1>
<p class="w3-xlarge w3-text-dark-grey">The language for building web pages</p>
<a href="/html/default.asp" class="w3-button w3-dark-grey">LEARN HTML</a>
<a href="/tags/default.asp" class="w3-button w3-dark-grey">HTML REFERENCE</a>
</div>
<div class="w3-col l6" style="padding:3%">
<div class="w3-hide-small w3-light-grey w3-card-2" style="padding:16px;">
<h3>HTML Example:</h3>
<div class="w3-code htmlHigh notranslate w3-border-green">
<!DOCTYPE html><br>
<html><br>
<title>HTML Tutorial</title><br>
<body><br><br>
<h1>This is a heading</h1><br>
<p>This is a paragraph.</p><br><br>
</body><br>
</html>
</div>
<a href="/html/tryit.asp?filename=tryhtml_default" target="_blank" class="w3-button w3-theme w3-hover-green w3-hover-shadow">Try it Yourself »</a>
</div>
</div>
</div>
<div class="w3-row w3-light-grey w3-hide-medium w3-hide-small">
<div class="w3-col l6" style="padding-top:40px;padding:3%;">
<h3>CSS Example:</h3>
<div class="w3-code cssHigh notranslate w3-card-2 w3-border-green">
body {<br>
background-color: lightblue;<br>}<br>
h1 {<br>
color: white;<br>
text-align: center;<br>}<br>
p {<br>
font-family: verdana;<br>
font-size: 20px;<br>}
</div>
<a href="/css/tryit.asp?filename=trycss_default" target="_blank" class="w3-button w3-theme w3-hover-green w3-hover-shadow">Try it Yourself »</a>
</div>
<div class="w3-col l6 w3-center" style="padding:3%">
<h1>CSS</h1>
<p class="w3-xlarge">The language for styling web pages</p>
<a href="/css/default.asp" class="w3-button w3-dark-grey">LEARN CSS</a>
<a href="/cssref/default.asp" class="w3-button w3-dark-grey">CSS REFERENCE</a>
</div>
</div>
<div class="w3-row w3-light-grey w3-hide-large" style="padding-bottom:30px">
<div class="w3-col l6 w3-center" style="padding:3%">
<h1>CSS</h1>
<p class="w3-xlarge">The language for styling web pages</p>
<a href="/css/default.asp" class="w3-button w3-dark-grey">LEARN CSS</a>
<a href="/cssref/default.asp" class="w3-button w3-dark-grey">CSS REFERENCE</a>
</div>
<div class="w3-col l6 w3-hide-small" style="padding-top:40px;padding:3%;">
<h3>CSS Example:</h3>
<div class="w3-code cssHigh notranslate w3-card-2 w3-border-green">
body {<br>
background-color: lightblue;<br>}<br>
h1 {<br>
color: white;<br>
text-align: center;<br>}<br>
p {<br>
font-family: verdana;<br>
font-size: 20px;<br>}
</div>
<a href="/css/tryit.asp?filename=trycss_default" target="_blank" class="w3-button w3-theme w3-hover-green w3-hover-shadow">Try it Yourself »</a>
</div>
</div>
<div class="w3-row">
<div class="w3-col l6 w3-center" style="padding:3%">
<h1 class="w3-jumbo">JavaScript</h1>
<p class="w3-xlarge w3-text-dark-grey">The language for programming web pages</p>
<a href="/js/default.asp" class="w3-button w3-dark-grey">LEARN JAVASCRIPT</a>
<a href="/jsref/default.asp" class="w3-button w3-dark-grey">JAVASCRIPT REFERENCE</a>
</div>
<div class="w3-col l6" style="padding:3%">
<div class="w3-hide-small w3-card-2 w3-light-grey" style="padding:16px;">
<h3>JavaScript Example:</h3>
<div class="w3-code notranslate w3-card-2 w3-border-green">
<div class="htmlHigh">
<script>
</div>
<div class="jsHigh">
function myFunction() {<br>
var x = document.getElementById("demo");<br>
x.style.fontSize = "25px"; <br>
x.style.color = "red"; <br>}<br>
</div>
<div class="htmlHigh">
</script><br><br>
<button onclick="myFunction()">Click Me!</button>
</div>
</div>
<a href="/js/tryit.asp?filename=tryjs_default" target="_blank" class="w3-button w3-theme w3-hover-green w3-hover-shadow">Try it Yourself »</a>
</div>
</div>
</div>
<div class="w3-row w3-light-grey w3-padding-16">
<div class="w3-col l6 w3-center" style="padding:2% 3%;">
<div class="w3-card-2 w3-white w3-padding" style="padding-bottom:24px!important">
<h2 class="w3-xxlarge">SQL</h2>
<h4 class="w3-text-dark-grey">A language for accessing databases</h4>
<a href="/sql/default.asp" class="w3-button w3-dark-grey">LEARN SQL</a>
</div>
</div>
<div class="w3-col l6 w3-center" style="padding:2% 3%;">
<div class="w3-card-2 w3-white w3-padding" style="padding-bottom:24px!important">
<h2 class="w3-xxlarge">PHP</h2>
<h4 class="w3-text-dark-grey">A web server programming language</h4>
<a href="/php/default.asp" class="w3-button w3-dark-grey">LEARN PHP</a>
</div>
</div>
<div class="w3-col l6 w3-center" style="padding:2% 3%;">
<div class="w3-card-2 w3-white w3-padding" style="padding-bottom:24px!important">
<h2 class="w3-xxlarge">jQuery</h2>
<h4 class="w3-text-dark-grey">A JavaScript library for developing web pages</h4>
<a href="/jquery/default.asp" class="w3-button w3-dark-grey">LEARN JQUERY</a>
</div>
</div>
<div class="w3-col l6 w3-center" style="padding:2% 3%;">
<div class="w3-card-2 w3-white w3-padding" style="padding-bottom:24px!important">
<h2 class="w3-xxlarge">Python</h2>
<h4 class="w3-text-dark-grey">A web server programming language</h4>
<a href="/python/default.asp" class="w3-button w3-dark-grey">LEARN PYTHON</a>
</div>
</div>
</div>
<div class="w3-row">
<div class="w3-col l4 w3-center" style="padding:3%;">
<h2 class="w3-xxlarge">W3.CSS</h2>
<h4 class="w3-text-dark-grey">A modern CSS framework for faster and better responsive web pages</h4>
<a href="/w3css/default.asp" class="w3-button w3-dark-grey">LEARN W3.CSS</a>
</div>
<div class="w3-col l4 w3-center" style="padding:3%;">
<h2 class="w3-xxlarge">Color Picker</h2>
<a href="/colors/colors_picker.asp" class="w3-hover-opacity"><img style="width:150px;height:128px;margin-top:16px;" src="/images/colorpicker.png" alt="Colorpicker"></a>
</div>
<div class="w3-col l4 w3-center" style="padding:3%;">
<h2 class="w3-xxlarge">Bootstrap</h2>
<h4 class="w3-text-dark-grey">A CSS framework for designing better web pages</h4>
<a href="/bootstrap/default.asp" class="w3-button w3-dark-grey">LEARN BOOTSTRAP</a>
</div>
</div>
<br>
<div class="w3-dark-grey w3-center w3-padding-large w3-padding-48" style="padding-bottom:68px!important">
<h2 class="w3-xxlarge">Exercises</h2>
<h4>Test yourself with exercises for HTML, CSS and JavaScript</h4>
<div class="w3-row-padding w3-content">
<div class="w3-third">
<p><a class="w3-btn w3-green w3-block w3-padding-16" href="/html/html_exercises.asp">HTML Exercises »</a></p>
</div>
<div class="w3-third">
<p><a class="w3-btn w3-green w3-block w3-padding-16" href="/css/css_exercises.asp">CSS Exercises »</a></p>
</div>
<div class="w3-third">
<p><a class="w3-btn w3-green w3-block w3-padding-16" href="/js/js_exercises.asp">JavaScript Exercises »</a></p>
</div>
</div>
</div>
<div class="w3-light-grey w3-center w3-padding-large w3-padding-32">
<h2 class="w3-xxlarge">Web Templates</h2>
<h4 class="w3-text-dark-grey">Browse our selection of <strong>free</strong> responsive HTML Templates</h4>
<div class="w3-content">
<a href="/w3css/w3css_templates.asp"><img src="w3css_templates.jpg" style="width:100%;margin:16px 0 20px 0" alt="W3.CSS Templates"></a>
</div>
<p><a href="/w3css/w3css_templates.asp" class="w3-button w3-dark-grey w3-padding-large">BROWSE TEMPLATES</a></p>
</div>
<br>
<div class="w3-white w3-center w3-padding-large w3-padding-16" style="padding-bottom:36px!important">
<h2 class="w3-xxlarge">How To Section</h2>
<h4 class="w3-text-dark-grey">Code snippets for HTML, CSS and JavaScript</h4>
<div class="w3-content w3-hide-device">
<div class="w3-row-padding" style="margin:32px -16px">
<div class="w3-col l6 s12">
<iframe src="/howto/tryhow_css_sidenav_ifr.htm" style="width:100%;border:5px solid #ddd;height:300px"></iframe>
</div>
<div class="w3-col l6 w3-hide-small w3-hide-medium">
<iframe src="/howto/tryhow_css_sidenav_ifr2.htm" style="width:100%;border:5px solid #ddd;height:300px"></iframe>
</div>
</div>
</div>
<p><a href="/howto/default.asp" class="w3-button w3-dark-grey w3-padding-large">LEARN HOW TO</a></p>
</div>
<div class="w3-display-container w3-black" id="certsection">
<a href="/cert/default.asp">
<img src="getcertified.jpg" style="max-width:100%;margin:auto;display:block" alt="W3 Certificates">
<div class="certoverlay">
<br class="w3-hide-small w3-hide-medium">
<h2>Web Certificates</h2><h3>Get Certified in HTML, CSS, and JavaScript</h3>
</div>
</a>
<p class="w3-display-middle getcert"><a href="/cert/default.asp" class="w3-button w3-green w3-hover-white w3-padding-large" style="font-size:17px">Get Certified »</a></p>
</div>
<footer class="w3-container w3-dark-grey w3-center w3-padding-32">
<div class="w3-container w3-padding-32">
<a class="w3-button w3-light-grey w3-hide-small w3-hide-medium w3-left" href="/cert/default.asp" style="font-size:16px;margin-top:-9px">WEB CERTIFICATES</a>
<a class="w3-button w3-light-grey w3-hide-small w3-hide-medium w3-left" href="/quiztest/quiztest.asp?Qtest=HTML" style="font-size:16px;margin-top:-9px;margin-left:12px">QUIZZES</a>
<a class="w3-button w3-light-grey w3-hide-small w3-hide-medium w3-left" target="_blank" href="/html/exercise.asp?filename=exercise_attributes1" style="font-size:16px;margin-top:-9px;margin-left:12px">EXERCISES</a>
<a class="w3-button w3-light-grey w3-hide-large" href="/cert/default.asp" style="font-size:16px;margin-bottom:16px">CERTIFICATES</a>
<a class="w3-button w3-light-grey w3-hide-large" href="/quiztest/quiztest.asp?Qtest=HTML" style="font-size:16px;margin-bottom:16px;">QUIZZES</a>
<a class="w3-button w3-light-grey w3-hide-large" target="_blank" href="/html/exercise.asp?filename=exercise_attributes1" style="font-size:16px;margin-bottom:16px;">EXERCISES</a>
<nav class="w3-right w3-hide-medium w3-hide-small w3-wide">
<a href="/forum/default.asp" target="_blank" class="w3-hover-text-green" style="text-decoration:none">FORUM</a> |
<a href="/about/default.asp" target="_top" class="w3-hover-text-green" style="text-decoration:none">ABOUT</a>
</nav>
<nav class="w3-center w3-hide-large w3-margin-top w3-wide">
<a href="/forum/default.asp" target="_blank" class="w3-hover-text-green" style="text-decoration:none">FORUM</a> |
<a href="/about/default.asp" target="_top" class="w3-hover-text-green" style="text-decoration:none">ABOUT</a>
</nav>
</div>
<p class="w3-medium">
W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of
all content. While using this site, you agree to have read and accepted our <a href="/about/about_copyright.asp" class="w3-hover-text-green">terms of use</a>, <a href="/about/about_privacy.asp" class="w3-hover-text-green">cookie and privacy policy</a>.<br>
<a href="/about/about_copyright.asp" class="w3-hover-text-green">Copyright 1999-2018</a> by Refsnes Data. All Rights Reserved.<br><br></p>
<a href="javascript:void(0);" onclick="clickFBLike()" title="Like W3Schools on Facebook" class="w3-hover-text-light-grey">
<i class="fa fa-thumbs-o-up w3-xxlarge"></i></a>
<div id="fblikeframe" class="w3-modal">
<div class="w3-modal-content w3-padding-64 w3-animate-zoom" id="popupDIV"></div>
</div>
</footer>
<!-- END MAIN -->
</div>
<script>
function w3_open() {
var x = document.getElementById("myAccordion");
if (x.style.display === 'none') {
x.style.display = 'block';
} else {
x.style.display = 'none';
}
}
function w3_close() {
document.getElementById("myAccordion").style.display = "none";
}
function open_xs_menu(x) {
if (document.getElementById("sectionxs_" + x).innerHTML == "") {
document.getElementById("sectionxs_" + x).innerHTML = document.getElementById("nav_" + x).innerHTML;
} else {
document.getElementById("sectionxs_" + x).innerHTML = "";
}
}
function w3_open_nav(x) {
if (document.getElementById("nav_" + x).style.display == "block") {
w3_close_nav(x);
} else {
w3_close_nav("tutorials");
w3_close_nav("references");
w3_close_nav("examples");
document.getElementById("nav_" + x).style.display = "block";
if (document.getElementById("navbtn_" + x)) {
document.getElementById("navbtn_" + x).getElementsByTagName("i")[0].style.display = "none";
document.getElementById("navbtn_" + x).getElementsByTagName("i")[1].style.display = "inline";
}
if (x == "search") {
if (document.getElementById("gsc-i-id1")) {document.getElementById("gsc-i-id1").focus(); }
}
}
}
function w3_close_nav(x) {
document.getElementById("nav_" + x).style.display = "none";
if (document.getElementById("navbtn_" + x)) {
document.getElementById("navbtn_" + x).getElementsByTagName("i")[0].style.display = "inline";
document.getElementById("navbtn_" + x).getElementsByTagName("i")[1].style.display = "none";
}
}
function open_translate(elmnt) {
var a = document.getElementById("google_translate_element");
if (a.style.display == "") {
a.style.display = "none";
elmnt.innerHTML = "<i class='fa'></i>";
} else {
a.style.display = "";
if (window.innerWidth > 830) {
a.style.width = "20%";
} else {
a.style.width = "60%";
}
elmnt.innerHTML = "<span style='font-family:verdana;font-weight:bold;display:inline-block;width:21px;text-align:center;'>X</span>";
}
}
function open_search(elmnt) {
var a = document.getElementById("googleSearch");
document.getElementById("navbtn_tutorials").style.visibility = "visible";
if (a.style.display == "") {
a.style.display = "none";
elmnt.innerHTML = "<i class='fa'></i>";
} else {
a.style.display = "";
if (window.innerWidth > 1000) {
a.style.width = "40%";
} else if (window.innerWidth >768) {
document.getElementById("navbtn_tutorials").style.visibility = "hidden";
a.style.width = "80%";
} else {
a.style.width = "80%";
}
if (document.getElementById("gsc-i-id1")) {document.getElementById("gsc-i-id1").focus(); }
elmnt.innerHTML = "<span style='font-family:verdana;font-weight:bold;display:inline-block;width:23px;text-align:center;'>X</span>";
}
}
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
autoDisplay: false,
gaTrack: true,
gaId: 'UA-3855518-1',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
function clickFBLike() {
document.getElementById("fblikeframe").style.display='block';
document.getElementById("popupDIV").innerHTML = "<iframe src='/fblike.asp?r=" + Math.random() + "' frameborder='no' style='height:200px;width:250px;'></iframe><br><button onclick='hideFBLike()' class='w3-button w3-dark-grey w3-hover-black'>Close</button>";
}
function hideFBLike() {
document.getElementById("fblikeframe").style.display='none';
}
</script>
<script src="/lib/w3codecolor.js"></script>
<script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script>
w3CodeColor();
</script>
</body>
</html>