-
Notifications
You must be signed in to change notification settings - Fork 296
/
index.html
2616 lines (2379 loc) · 117 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
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
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en-US">
<!-- Mirrored from www.w3schools.com/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 06:28:35 GMT -->
<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, Python, CSS, SQL, JavaScript, How to, PHP, Java, C, C++, C#, jQuery, Bootstrap, Colors, W3.CSS, XML, MySQL, Icons, Node.js, React, Graphics, Angular, R, AI, Git, Data Science, Code Game, Tutorials, Programming, Web Development, Training, Learning, Quiz, Exercises, Courses, Lessons, References, Examples, Learn to code, Source code, Demos, Tips, Website">
<meta name="Description" content="Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.">
<meta property="og:image" content="https://www.w3schools.com/images/w3schools_logo_436_2.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="436">
<meta property="og:image:height" content="228">
<meta property="og:title" content="W3Schools Free Online Web Tutorials">
<meta property="og:description" content="W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="preload" href="lib/fonts/fontawesome8deb.woff2?14663396" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="lib/fonts/source-code-pro-v14-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="lib/fonts/roboto-mono-v13-latin-500.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="lib/fonts/source-sans-pro-v14-latin-700.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="lib/fonts/source-sans-pro-v14-latin-600.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="lib/fonts/freckle-face-v9-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="lib/w3schools30.css">
<script>
var searchFromBox = false;
function gSearch(el) {
var cx = uic_r_y();
var gcse = document.createElement('script'); gcse.id = 'gSearch'; gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = '../cse.google.com/cse07b6.html?cx=' + cx;
var el = document.getElementById('gSearch');
if (el == null) {
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
}
open_search(el, searchFromBox);
};
function gTra(el) {
var gtra = document.createElement('script'); gtra.id = 'gTra'; gtra.type = 'text/javascript'; gtra.async = true;
gtra.src = '../translate.google.com/translate_a/elementa0d8.js?cb=googleTranslateElementInit';
var el = document.getElementById('gTra');
if (el == null) {
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gtra, s);
}
open_translate(el);
};
</script>
<!-- Google Tag Manager -->
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'../www.googletagmanager.com/gtm5445.html?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KTCFC3S');
</script>
<!-- End Google Tag Manager -->
<style>
/* Customize w3schools23.css */
#nav_tutorials,
#nav_references,
#nav_exercises {
margin-top: 0;
}
@media screen and (min-width: 769px) {
.w3-bar-block .w3-button {
padding: 0 16px !important;
}
}
.fa {
font-size: 20px;
}
#main {
padding: 0;
border-right: none;
}
.fa-thumbs-o-up:hover {
color: #fff;
}
@media (min-width:1675px) {
#main {
width: auto;
}
}
#nav_tutorials,
#nav_references,
#nav_exercises {
display: none;
padding-bottom: 40px;
position: absolute;
width: 100%;
z-index: 5 !important;
}
#nav_tutorials h3,
#nav_references h3,
#nav_exercises h3,
#sectionxs_tutorials h3,
#sectionxs_references h3,
#sectionxs_exercises h3 {
padding-left: 6px;
color: #FFF4A3;
}
div.cse .gsc-control-cse,
div.gsc-control-cse {
padding: 0;
margin-top: 0;
}
/* Customize W3.CSS */
.w3-col.l4 .w3-card-2 {
padding: 15px 10px;
height: 260px;
}
.w3-bar {
position: relative;
z-index: 4;
font-size: 18px;
xbackground-color: white;
xcolor:#282A35;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Source Sans Pro', sans-serif;
}
h1 {
font-size: 80px;
margin: 2px 0 -20px 0 !important;
}
.learn h1 {
margin: 10px 0 !important;
}
.green-border {
border-left: 4px solid #04AA6D;
}
.w3-round, .w3-round-medium {
border-radius: 5px;
}
.tryit-button {
background-color: #04AA6D;
color: white;
border-radius: 25px;
font-size: 18px;
width:200px;
}
.tut-button {
background-color: #04AA6D;
color: white;
font-size: 18px;
margin: auto;
display: block;
width: 200px;
border-radius: 25px;
}
.w3csstut {
height: 390px;
}
.tut-button:hover,.tryit-button:hover,.exercise-button:hover,#getdiploma a:hover {
background-color: #059862 !important;
color:white!important;
}
.bar-item-hover:hover {
background-color: #04AA6D!important;
color:white!important;
}
.bar-icon-hover:hover,.fa-logo:hover {
background-color: white !important;
color:#059862!important;
}
.mystyle,.mystyle:hover {
background-color: #282A35!important;
color:white!important;
}
.closenav_span:hover {
background-color: #282A35!important;
color: #059862!important;
}
.ref-button {
background-color: white;
font-size: 18px;
margin: auto;
display: block;
width: 200px;
border-radius: 25px;
color: #000;
}
.ref-button:hover {
background-color: #E7E9EB!important;
color: black;
}
.black-color {
background-color: #282A35;
color: white;
}
.black-color:hover {
background-color: #000!important;
color: white!important;
}
.grey-color {
background-color: #E7E9EB;
color: black
}
.exercise-button {
padding: 70px 50px;
font-size: 35px;
width:87%;
opacity:0.97;
}
#w3loginbtn {
width:130px;
background-color:#04AA6D;
color:white;
border-radius:25px;
font-size:18px;
line-height:1.5;
display:none;
}
#loginactioncontainer {
margin-left:50px;
}
div.ext_icon_container {
background-color:#fff;
color:#000;
}
body.darkpagetheme div.ext_icon_container {
background-color:#1d2a35;
color:#ddd;
}
#darkmodemenu {
position:absolute;
top:5px;
padding:5px 20px 10px 18px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
z-index:-1;
transition: top 0.2s;
user-select: none;
}
#darkmodemenu input,#darkmodemenu label {
cursor:pointer;
}
@media screen and (min-width:601px) {
#navbtn_menu {
display: block;
}
}
@media screen and (max-width:430px) {
#w3loginbtn {
width:90px;
line-height:2;
font-size:14px;
}
#loginactioncontainer {
width:70px;
margin-left:16px;
}
}
@media screen and (max-width:380px) {
.w3searchbtntopnav,.w3translatebtntopnav {
display:none!important
}
}
@media screen and (min-width:861px) {
#myAccordion,#navbtn_menu,.hidesm {
display: none !important;
}
}
@media screen and (max-width:430px) {
#nav_translate_btn,#nav_search_btn,#navbtn_menu {
padding:8px 8px;
}
}
@media screen and (max-width:860px) {
.barex, .navex {
display: none !important;
}
#googleSearch, #google_translate_element {
top:75px;
width:100%!important;
right:0!important;
padding-top:19px!important;
}
}
@media screen and (max-width:768px) {
h1,
.w3-jumbo {
font-size: 60px !important;
}
}
@media screen and (max-width:380px) {
div.cse .gsc-control-cse,
div.gsc-control-cse {
padding: 0;
margin-top: -4px;
}
}
#w3_cert_badge {
position: absolute;
right: 5%;
width: 220px;
transform: rotate(10deg);
bottom: -15%;
}
#w3_cert_arrow {
position: absolute;
right: 240px;
width: 220px;
transform: rotate(10deg);
bottom: 0;
z-index: 1;
}
#howto_padding {
padding: 0px 24px 100px 24px
}
#getdiploma {
position: relative;
padding: 0 60px 50px 60px;
margin-bottom: 85px;
background-color: #282A35;
color: #FFC0C7;
font-family: 'Source Sans Pro', sans-serif;
}
#getdiploma p {
font-size: 52px;
margin-top: 1em;
margin-bottom: 1em;
font-family: 'Source Sans Pro', sans-serif;
}
#getdiploma h2 {
font-size: 62px;
margin-top: 1em;
margin-bottom: 1em;
font-family: 'Source Sans Pro', sans-serif;
}
#getdiploma a {
border-radius: 50px;
font-size: 18px;
background-color: #04AA6D;
padding: 17px 55px
}
@media screen and (max-width: 680px) {
#w3_cert_badge {
width: 150px;
right: 2%;
}
}
@media screen and (max-width: 1155px) {
#w3_cert_arrow {
display: none;
}
}
@media screen and (max-width: 992px) {
#w3_cert_arrow {
display: block;
}
.w3csstut {
height: auto;
}
}
@media screen and (min-width: 1844px) {
#w3_cert_badge {
width: 190px;
right: 2%;
}
#w3_cert_arrow {
right: 169px;
}
}
@media screen and (max-width: 800px) {
#w3_cert_arrow {
display: none;
}
#getdiploma h2 {
font-size: 55px;
}
}
@media screen and (max-width: 600px) {
#w3_cert_badge {
top: -35px;
right: 10px;
width: 100px;
}
#howto_padding {
padding: 0px 24px 90px 24px
}
#getdiploma {
margin-bottom:45px;
}
}
@media screen and (max-width: 500px) {
#getdiploma p {
font-size: 40px;
}
#getdiploma a {
width: 100%;
}
div.ext_icon_container {
background-color:transparent!important;
}
}
.tutbuttons a{
text-decoration:none;
}
.tutbuttons a div {
opacity:0.9;
}
.tutbuttons a:hover div {
opacity:1;
}
.ribbon-vid {
width: 60px;
font-size:14px;
padding: 5px;
position: absolute;
left:-20px;
top:-10px;
text-align: center;
color:black;
border-radius:25px;
-ms-transform: rotate(-20deg); /* IE 9 */
transform: rotate(-20deg);
}
.ws-yellow-hover:hover {
background-color:#fff080!important;
color:black!important;
}
.ws-pink-hover:hover {
background-color:#ffb3bb!important;
color:black!important;
}
.ribbon-topnav {
font-size:11px;
font-weight:bold;
padding:3px 10px;
margin-left:3px;
text-align: center;
color:black;
border-radius:25px;
border:1px solid black;
position:relative;
top:-2px;
background-color:white;
}
#google_translate_element {
z-index:7!important;
}
@media screen and (max-width: 1152px) {
.ribbon-topnav {
display: none !important;
}
}
@media screen and (max-width: 860px) {
.ws-hide-860 {
display: none !important;
}
#darkmodemenu {
padding:5px 10px 10px 9px;
}
}
@media screen and (max-width: 1080px) {
.ws-hide-1080 {
display: none !important;
}
}
@media screen and (max-width: 1200px) {
.ws-hide-1200 {
display: none !important;
}
}
@media screen and (max-width: 1300px) {
.ws-hide-1300 {
display: none !important;
}
}
@media screen and (max-width: 950px) {
.ws-hide-950 {
display: none !important;
}
}
#howto_iframe {
width: 100%;
border: 6px solid #e3e6e8;
height: 400px;
border-bottom-left-radius:4px;
border-bottom-right-radius:4px;
}
.vl-howto {
border-left: 50px solid #282A35;
height: 80px;
position: absolute;
top:-6px;
left:50%;
margin-left:-25px;
}
.vl-howtobtn {
width:50%;
margin-top:73px;
}
@media screen and (max-width: 1250px) {
.ws-hide-1250 {
display: none !important;
}
}
@media screen and (max-width: 900px) {
#howto_iframe {
height: 360px;
}
}
@media screen and (max-width: 800px) {
#howto_iframe {
height: 320px;
}
}
@media screen and (max-width: 700px) {
#howto_iframe {
height: 280px;
}
.codeeditorbr-input {
margin-left: 15px;
}
.vl-howto {
height:45px;
}
.vl-howtobtn {
margin-top:37px;
}
}
@media screen and (max-width:584px) {
#howto_iframe {
height: 245px;
}
}
@media screen and (max-width:500px) {
#howto_iframe {
height: 215px;
}
}
@media screen and (max-width:450px) {
#howto_iframe {
height: 203px;
}
}
.codeeditorbr-container {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.codeeditorbr-row {
padding: 10px;
background: #f1f1f1;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.codeeditorbr-column {
float: left;
}
.codeeditorbr-left {
width: 20%;
}
.codeeditorbr-middle {
width: 80%;
}
@media screen and (max-width: 800px) {
.codeeditorbr-left {
width: 24%;
}
.codeeditorbr-middle {
width: 76%;
}
}
.codeeditorbr-row:after {
content: "";
display: table;
clear: both;
}
.codeeditorbr-dot {
margin-top: 5px;
height: 15px;
width: 15px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
margin-left: 3px;
}
.codeeditorbr-input {
width: 80%;
border-radius: 3px;
border: none;
background-color: white;
margin-top: -8px;
height: 22px;
color: #666;
font-size: 14px;
padding: 5px;
}
.hover-yellow:hover {
background-color: #fff080 !important;
color: black !important;
}
.codeeditorbr-tablink {
font-size: 17px;
font-family: 'Source Sans Pro', sans-serif;
border: none;
display: inline-block;
padding: 6px 18px;
vertical-align: middle;
overflow: hidden;
text-decoration: none;
color: inherit;
text-align: center;
cursor: pointer;
white-space: nowrap;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color: #ffffff;
}
.codeeditorbr-tablink:hover {
background-color: #E7E9EB !important
}
.hover-yellow:hover {
background-color:#fff080!important;
color:black!important;
}
#bgcodeimg {
background: #282A35 url("about/w3codes.png") no-repeat fixed center;
}
#bgcodeimg2 {
background: #282A35 url("spaces/files/priscilla-du-preez-XkKCui44iM0-unsplash.921aa0c0.jpg") no-repeat fixed center;
}
form.example {
position:relative;
}
form.example input[type=text] {
padding: 10px;
font-size: 17px;
border: 1px solid #282A35;
border-radius:25px;
float: left;
width: 80%;
padding-left:25px;
background: white;
border-top-right-radius:0;
border-bottom-right-radius:0;
border-right:0;
border-right: 1px solid #04AA6D;
outline:0;
}
form.example button {
border-radius:25px;
float: left;
width: 20%;
padding: 10px;
background:#04AA6D;
color: white;
font-size: 17px;
border: 1px solid #282A35;
border-left: none;
cursor: pointer;
border-top-left-radius:0;
border-bottom-left-radius:0;
}
form.example button:hover {
background: #059862;
color: white;
}
form.example::after {
content: "";
clear: both;
display: table;
}
#listofsearchresults {
display:none;
position:absolute;
//border:1px solid #000;
background-color:#282A35;
background-color:#fff;
color:#000;
width:80%;
top:47px;
border-left: 1px solid #282A35;
border-right: 1px solid #282A35;
border-bottom: 1px solid #282A35;
text-align:left;
}
#listofsearchresults a {
background-color:#e2e3e9;
background-color:#fff;
color:#777;
text-decoration:none;
display:block;
padding:10px 30px;
width:100%;
opacity:0.95;
}
#listofsearchresults a:hover {
color:#000;
opacity:1;
}
.span_search {
background-color:#ffecee;
}
.search_active {
background-color:#ffecee!important;
color:#000!important;
}
.search_active .span_search {
background-color:#ffccd1;
}
.learntocodeh1 {
font-size:70px;
font-weight:700;
}
.learntocodeh3 {
color:#FFC0C7;
font-weight:700;
margin-top:30px!important;
font-size:23px;
}
.learntocodecontent {
padding-left:90px;
padding-right:90px;
}
@media screen and (max-width: 600px) {
.learntocodeh1 {
font-size:50px!important;
}
.learntocodeh3 {
font-size:21px!important;
}
.learntocodecontent {
padding-left:35px;
padding-right:35px;
}
form.example input[type=text],form.example button {
font-size: 16px;
}
form.example input[type=text] {
padding-left:16px;
}
}
@media screen and (max-width: 1006px) and (min-width: 992px) {
.ws-hide-special {
display:none;
}
}
.grey-color {
background-color: #E7E9EB;
color: #000;
}
body.darkpagetheme .grey-color {
background-color: #38444d;
color: #ddd;
}
body.darkpagetheme .bar-icon-hover:hover,body.darkpagetheme .fa-logo:hover {
background-color: #1d2a35!important;
color:#059862!important;
}
table.gstl_50 {/*google search suggestions*/
color:#000;
}
.topnavmain_pro {
background-color:#282A35;
color:#fff;
}
body.darkpagetheme .topnavmain_pro {
background-color:#fff;
color:#000;
}
.pro-caption {
padding: 78px 35px 96px 35px;
text-align: center
}
.pro-caption h1 {
font-weight: 700;
font-size: 52px;
line-height: 55px;
padding-top: 11px;
padding-bottom: 20px;
font-family: Source Sans Pro;
color: #fff;
margin: 0
}
.pro-caption h3 {
font-size: 25px;
color: #FFC0C7;
margin:19px 0;
}
.pro-caption li {
font-size:20px;
line-height:36px;
text-align:left;
list-style-type:none;
}
@media screen and (max-width:620px) {
.pro-caption {padding: 70px 15px 70px 15px;}
.pro-caption h1 {font-size:50px;}
.pro-caption h3 {font-size:24px;}
.pro-caption li {font-size:18px;}
}
@media screen and (max-width:550px) {
.pro-caption h1 {font-size:40px;}
.pro-caption h3 {font-size:24px;}
.pro-caption li {font-size:18px;}
}
</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]-->
<script data-cfasync="false" type="text/javascript">
window.snigelPubConf = {
"adengine": {
"activeAdUnits": []
}
}
</script>
<script async data-cfasync="false" src="../cdn.snigelweb.com/adengine/w3schools.com/loader.js" type="text/javascript"></script>
<script src="lib/common-depse209.js?v=1.0.0"></script>
<script src="lib/user-session0ff5.js?v=1.0.2"></script>
<script src="lib/my-learning248b.js?v=1.0.11"></script>
</head>
<body style="position:relative;min-height:100%;font-family: 'Source Sans Pro', sans-serif;">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="../www.googletagmanager.com/ns248c.html?id=GTM-KTCFC3S"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div style='display:none;position:absolute;z-index:6;top:75px;right:0;height:75px;padding-top:22px;padding-right:20px;padding-left:20px;background-color:#04AA6D;' id='googleSearch'><div class='gcse-search'></div></div>
<div style='display:none;position:absolute;z-index:5;top:75px;right:0;height:75px;padding-right:15px;background-color:#04AA6D;text-align:right;padding-top:25px;' id='google_translate_element'></div>
<div class="w3-bar w3-card-2 notranslate" style="padding-left:12px;padding-right:16px;overflow:visible">
<a href="index.html" class="w3-bar-item w3-button w3-hover-none w3-left w3-padding-16" title="Home" style="width:77px;">
<i class="fa fa-logo" style="position:relative;z-index:1;color:#04AA6D;font-size:42px!important;"></i>
</a>
<a class="w3-bar-item w3-button w3-hide-small barex bar-item-hover w3-padding-24" href="javascript:void(0)" onclick="w3_open_nav('tutorials')" id="navbtn_tutorials" title="Tutorials" style="width:116px">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 w3-hide-small barex bar-item-hover w3-padding-24" href="javascript:void(0)" onclick="w3_open_nav('references')" id="navbtn_references" title="References" style="width:132px">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 w3-hide-small barex bar-item-hover w3-padding-24 ws-hide-800" href="javascript:void(0)" onclick="w3_open_nav('exercises')" id="navbtn_exercises" title="Exercises" style="width:118px">Exercises <i class='fa fa-caret-down' style="font-size:20px;"></i><i class='fa fa-caret-up' style="display:none"></i></a>
<a class="w3-bar-item w3-button w3-hide-medium bar-item-hover w3-hide-small w3-padding-24 barex ws-hide-1200" href="videos/index.html" title="Video Tutorials">Videos</a>
<!-- <a class="w3-bar-item w3-button w3-hide-medium bar-item-hover w3-hide-small w3-padding-24 barex ws-hide-1080" href="/pro/index.php" title="Pro Subscription">Pro <span class="ribbon-topnav ws-hide-1250">NEW</span></a> -->
<a class="w3-bar-item w3-button bar-item-hover w3-padding-24" href="javascript:void(0)" onclick="w3_open()" id="navbtn_menu" title="Menu" style="width:93px">Menu <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style="display:none"></i></a>
<div id="loginactioncontainer" class="w3-right w3-padding-16">
<div id="mypagediv"></div>
<!-- <button id="w3loginbtn" style="border:none;display:none;cursor:pointer" class="login w3-right w3-hover-greener" onclick='w3_open_nav("login")'>LOG IN</button>-->
<a id="w3loginbtn" class="w3-bar-item w3-btn w3-right" href="../profile.w3schools.com/log-ina0ec.html?redirect_url=https%3A%2F%2Fmy-learning.w3schools.com" target="_self">Log in</a>
</div>
<div class="w3-right w3-padding-16 w3-white">
<!--<a class="w3-bar-item w3-button bar-item-hover w3-right w3-hide-medium barex" style="width:132px;border-radius:25px;margin-right:8px;" href="https://shop.w3schools.com/collections/course-catalog" target="_blank" id="cert_navbtn" title="Courses">Paid Courses</a>-->
<a class="w3-bar-item w3-button w3-right ws-hide-950 w3-hide-small barex ws-yellow ws-hover-yellow gt-btn-top-spaces" style="width: 150px;border-radius: 25px; margin-right: 15px;" href="spaces/index.html" target="_blank" title="Get Your Own Website With W3Schools Spaces">Create Website</a>
<a class="w3-bar-item w3-button w3-right ws-hide-1200 w3-hide-small barex ws-pink ws-hover-pink gt-btn-top-cert" style="border-radius: 25px; margin-right: 15px;" href="../campus.w3schools.com/collections/course-catalog.html" target="_blank" id="cert_navbtn" title="Courses">Get Certified</a>
<a class="w3-bar-item w3-button w3-right w3-hover-dark-grey ws-hide-900 w3-hide-small ws-hide-1300 barex topnavmain_pro gt-btn-top-pro" style="border-radius: 25px; margin-right: 15px;" href="pro/index.html" target="_blank" title="Upgrade to Improve Your Learning Experiences">Upgrade</a>
</div>
<div class="w3-right w3-padding-16 ext_icon_container" style="padding-top:0!important;padding-bottom:0!important">
<!--<a class="w3-bar-item w3-button bar-icon-hover w3-right w3-hover-white hidesm" href="javascript:void(0)" onclick="w3_open()" title="Menu"><i class='fa'></i></a>
-->
<a class="w3-bar-item w3-button bar-icon-hover w3-right w3searchbtntopnav" href="javascript:void(0)" style="padding-top:24px;padding-bottom:24px;padding-left:12px;padding-right:12px;margin-right:8px" onclick="gSearch(this)" title='Search W3Schools' id="nav_search_btn"><i class='fa'></i></a>
<a class="w3-bar-item w3-button bar-icon-hover w3-right w3translatebtntopnav" href="javascript:void(0)" style="padding-top:24px;padding-bottom:24px;padding-left:12px;padding-right:12px" onclick="gTra(this)" title='Translate W3Schools' id="nav_translate_btn"><i class='fa'></i></a>
<a class="w3-bar-item w3-button bar-icon-hover w3-right w3-hide-small" style="padding-top:24px;padding-bottom:24px;padding-left:12px;padding-right:12px" href="javascript:void(0)" onmouseover="mouseoverdarkicon()" onmouseout="mouseoutofdarkicon()" onclick='changepagetheme(2)' xxonclick="changecodetheme(this)" xxtitle='Toggle Dark Code'><i class='fa'></i></a>
<div id="darkmodemenu" class="w3-white w3-hide-small" onmouseover="mouseoverdarkicon()" onmouseout="mouseoutofdarkicon()">
<input id="radio_darkpage" type="checkbox" name="radio_theme_mode" onclick="click_darkpage()"><label for="radio_darkpage"> Dark mode</label>
<br>
<input id="radio_darkcode" type="checkbox" name="radio_theme_mode" onclick="click_darkcode()"><label for="radio_darkcode"> Dark code</label>
</div>
</div>
</div>
<div id='myAccordion' class="w3-card-2 w3-center w3-hide-large ws-grey" style="display:none;cursor:default;">
<a href="javascript:void(0)" onclick="w3_close()" class="w3-button w3-xxlarge w3-right">×</a><br>
<div class="w3-container w3-padding-32">
<a class="w3-button w3-block" style="font-size:22px;" onclick="open_xs_menu('tutorials');" href="javascript:void(0);">Tutorials <i class='fa fa-caret-down'></i></a>
<div id="sectionxs_tutorials" class="w3-left-align w3-show" style="background-color:#282A35;color:white;"></div>
<a class="w3-button w3-block" style="font-size:22px;" onclick="open_xs_menu('references')" href="javascript:void(0);">References <i class='fa fa-caret-down'></i></a>
<div id="sectionxs_references" class="w3-left-align w3-show" style="background-color:#282A35;color:white;"></div>
<a class="w3-button w3-block" style="font-size:22px;" onclick="open_xs_menu('exercises')" href="javascript:void(0);">Exercises <i class='fa fa-caret-down'></i></a>
<div id="sectionxs_exercises" class="w3-left-align w3-show" style="background-color:#282A35;color:white;"></div>
<a class="w3-button w3-block" style="font-size:22px;" href="../campus.w3schools.com/collections/course-catalog.html" target="_blank">Get Certified</a>
<a class="w3-button w3-block" style="font-size:22px;" href="pro/index.html" title="Upgrade to Improve Your Learning Experiences">Upgrade</a>
<a class="w3-button w3-block" style="font-size:22px;" href="spaces/index.html" target="_blank" title="Get Your Own Website With W3schools Spaces">Spaces</a>
<a class="w3-button w3-block" style="font-size:22px;" target="_blank" href="videos/index.html" title="Video Tutorials">Videos</a>
<a class="w3-button w3-block" style="font-size:22px;" href="../shop.w3schools.com/index.html" target="_blank">Shop</a>
<!-- <a class="w3-button w3-block w3-round bar-item-hover" style="font-size:22px;background-color:#04AA6D;color:white;" href="https://profile.w3schools.com/log-in?redirect_url=https%3A%2F%2Fmy-learning.w3schools.com" target="_blank">Log in</a>
-->
</div>