-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-jan.html
903 lines (901 loc) · 45.8 KB
/
01-jan.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
<!doctype html>
<html>
<head>
<title>Jan - Intro to HTML - Coding & Cocktails KC</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="description" content="This is the official Coding & Cocktails HTML course."/>
<meta name="author" content="Kansas City Women in Technology"/>
<meta name="keywords" content="Kansas City Women in Technology, kcwit, women engineers, learn to code, girls in tech, women in tech, coding and cocktails, learn front-end development"/>
<meta property="og:title" content="HTML - Coding & Cocktails KC" />
<meta property="og:type" content="website"/>
<meta property="og:image" content="http://codingandcocktails.kcwomenintech.org/images/logo.png" />
<meta property="og:url" content="http://codingandcocktails.kcwomenintech.org"/>
<meta property="og:description" content="This is the official Coding & Cocktails HTML course."/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:url" content="http://codingandcocktails.kcwomenintech.org"/>
<meta name="twitter:title" content="Coding And Cocktails by Kansas City Women in Technology"/>
<meta name="twitter:description" content="This is the official Coding & Cocktails HTML course."/>
<meta name="twitter:image" content="http://codingandcocktails.kcwomenintech.org/images/logo.png"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"/>
<link rel="icon" type="image/x-icon" href="favicon.ico"/>
<link rel="stylesheet" href="css/font-awesome-4.7.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="css/reveal.css"/>
<link rel="stylesheet" href="css/theme/codingandcocktails.css" id="theme"/>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<div style="position: absolute; left: -50px; top:0px;">
<font style="font-size: 0.5em">
<a href="http://bit.ly/CnCIndex">
<i class="fa fa-arrow-left fa-sm"></i>
All Months
</a>
</font>
</div>
<h1>While You're Waiting</h1>
<div class="fill-col">
<p>Wifi: username / password</p>
<table class="tocTable" style="margin: 0 auto;">
<tr>
<td>Install the Tools</td>
<td><a href="http://bit.ly/CnCTheTools" target="_blank">http://bit.ly/CnCTheTools</a></td>
</tr>
<tr>
<td>View these slides</td>
<td><a href="http://bit.ly/CnCJanSlides" target="_blank">http://bit.ly/CnCJanSlides</a></td>
</tr>
<tr>
<td>Do the worksheet</td>
<td><a href="http://bit.ly/CnCJanWork" target="_blank">http://bit.ly/CnCJanWork</a></td>
</tr>
</table>
<div class="row-line-tools">
<span class="row-line-tools"><a href="https://www.google.com/chrome/browser/desktop/index.html" target="_blank"><img src="images/chrome.png"/></a></span>
<span class="row-line-tools"><a href="https://atom.io/" target="_blank"><img src="images/atom.png"/></a></span>
<span class="row-line-tools"><a href="https://git-scm.com/downloads" target="_blank"><img src="images/git.png"/></a></span>
<span class="row-line-tools"><a href="https://www.iterm2.com/" target="_blank"><img src="images/terminal.png"/></a></span>
</div>
<div class="license-container">
<img src="images/license_chooser_cc.png" class="license-img" /><img src="images/license_chooser_by.png" class="license-img" /><img src="images/license_chooser_sa.png" class="license-img" />
<p class="license-text">
All slides in this presentation are licensed by <a href="http://kcwomenintech.org/" target="_blank">http://kcwomenintech.org</a> under a <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
</div>
</div>
</section>
<section>
<h1>Intro to HTML</h1>
<div class="fill-row">
<img src="images/logo-large.png" alt="Coding & Cocktails" id="intro-logo"/>
</div>
</section>
<section>
<h1>Our Sponsors</h1>
<br><br>
<a href="https://fiber.google.com/cities/kansascity/" target="_blank"><img src="images/google_fiber.png" width="45%" style="vertical-align:middle;"/></a>
<a href="http://www.dstsystems.com/" target="_blank"><img src="images/dst.svg" width="35%" style="vertical-align:middle;"/></a>
</section>
<section>
<h1>Our Host this Evening</h1>
<div class="fill-row">
<a href="http://www.nerdery.com" target="_blank"><img src="images/Nerdery-logo.png" alt="The Nerdery" /></a>
</div>
</section>
<section>
<h1>Meet the C&C #LadyDevs</h1>
<div class="fill-row team" style="height:90%;">
<span class="fragment teammembers">
<img src="images/sarah_cropped.png" alt="Sarah Duitsman" class="teammembers" />
<h6 class="teammembers">Sarah Duitsman</h6>
<p class="teammembers">Program Director</p>
</span>
<span class="fragment teammembers">
<img src="images/kelly_cropped.jpg" alt="Kelly Winzer" class="teammembers" />
<h6 class="teammembers">Kelly Winzer</h6>
<p class="teammembers">Program Co-Director</p>
</span>
<span class="fragment teammembers">
<img src="images/kayla_cropped.png" alt="Kayla Hennegin" class="teammembers" />
<h6 class="teammembers">Kayla Hennegin</h6>
<p class="teammembers">Curriculum Director</p>
</span>
<span class="fragment teammembers">
<img src="images/alisa_cropped.jpg" alt="Alisa Duncan" class="teammembers" />
<h6 class="teammembers">Alisa Duncan</h6>
<p class="teammembers">Technical Materials Director</p>
</span>
<span class="fragment teammembers">
<img src="images/gabi_cropped.jpg" alt="Gabi Dombrowski" class="teammembers" />
<h6 class="teammembers">Gabi Dombrowski</h6>
<p class="teammembers">Mentor Director</p>
</span>
<span class="fragment teammembers">
<img src="images/lyndsey_cropped.png" alt="Lyndsey Padget" class="teammembers" />
<h6 class="teammembers">Lyndsey Padget</h6>
<p class="teammembers">Presentation Director</p>
</span>
<span class="fragment teammembers">
<img src="images/melissa_cropped.jpg" alt="Lyndsey Padget" class="teammembers" />
<h6 class="teammembers">Melissa Arroyo</h6>
<p class="teammembers">Marketing Director</p>
</span>
</div>
</section>
<section>
<h1>Join us on...</h1>
<a href="https://kcwit.slack.com" target="_blank" class="fragment">
<img src="images/slack-logo-white.png" alt="Slack" width="60%"/>
</a>
<div class="row-line-slack">
<span class="row-line-slack"><img src="images/01-jan/slack-1.png" class="fragment"/></span>
<span class="row-line-slack"><img src="images/01-jan/slack-2.png" class="fragment"/></span>
<span class="row-line-slack"><img src="images/01-jan/slack-3.png" class="fragment"/></span>
<span class="row-line-slack"><img src="images/01-jan/slack-4.jpg" class="fragment"/></span>
</div>
<div>
</section>
<section>
<h2>Our mentors</h2>
<img src="images/01-jan/mentors.jpg" alt="Mentors" height="70%" />
<h4>are super heroes!</h4>
</section>
<section>
<h2>Logistics & Libations</h2>
<img src="images/libations.jpg" alt="Laura Wagner" height="70%" />
<h4>founded by Laura Wagner</h4>
</section>
<section>
<div style="margin-bottom: 20px;"></div>
<p class="fragment current-visible" style="margin-top: 300px;">Why are you here?</p>
<img src="images/01-jan/guitar-1.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-2.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-3.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-4.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-5.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-6.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-7.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-8.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-9.jpg" class="fragment current-visible" height="90%"/>
<img src="images/01-jan/guitar-10.jpg" class="fragment current-visible" height="90%"/>
</section>
<section>
<h1>Tonight's Agenda: HTML</h1>
<ol style="margin-left: 40px;">
<li class="fragment">The Basics
<ol style="margin: 0 0 0 60px;" type="a">
<li class="fragment">What is HTML & How do you write it?</li>
<li class="fragment">Syntax & Structure</li>
<li class="fragment">Tags (old and new)</li>
</ol>
</li>
<li class="fragment">Attributes</li>
<li class="fragment">Standards & Best Practices</li>
<li class="fragment">Inspecting Source</li>
<li class="fragment">Images</li>
<li class="fragment">Forms</li>
<li class="fragment">Tables</li>
<li class="fragment">The DOM</li>
</ol>
</section>
<!-- part 1-->
<section>
<h1>The Basics</h1>
<img src="images/01-jan/basics.jpg" height="80%" alt="Basics"/>
</section>
<section>
<h1>What is HTML?</h1>
<br><br>
<p class="fragment">
<font style="color:#c7bc75">H</font>yper
<font style="color:#c7bc75">T</font>ext
<font style="color:#c7bc75">M</font>arkup
<font style="color:#c7bc75">L</font>anguage
</p>
<br>
<p class="fragment">
Most fundamental building block of web pages
</p>
<br>
<p class="fragment">
Describes how the content is displayed
</p>
<br>
<p class="fragment">
Indicates type, not style (font, color, size)
</p>
</section>
<section>
<h1>How do you write HTML?</h1>
<br><br>
<p class="fragment">
Create a .html file
</p>
<br>
<p class="fragment">
HTML is a markup language
</p>
<br>
<p class="fragment">
Markup and code is written/edited<br>in an IDE (like Atom)
</p>
<br>
<p class="fragment">
<font style="color:#c7bc75">I</font>ntegrated
<font style="color:#c7bc75">D</font>evelopment
<font style="color:#c7bc75">E</font>nvironment
</p>
</section>
<section>
<h1>Why use an IDE?</h1>
<br><br>
<p class="fragment">
Syntax highlighting helps you "see" the code<br>with colors & other visual cues
</p>
<br>
<p class="fragment">
Linters help you avoid mistakes<br>by highlighting them
</p>
<br>
<p class="fragment">
Auto-complete "guesses"<br>what you might want to type next
</p>
</section>
<section>
<h1>HTML Syntax</h1>
<br>
<p class="fragment">
HTML is a standard set of "tags"
</p>
<br><br>
<p class="fragment">
Open/Close tags
<code style="width:75%;margin: 0 auto;"><p>Hey girl</p></code>
</p>
<br>
<p class="fragment">
Self-Closing tags<br>
<code style="width:75%;margin: 0 auto;"><img src="images/ryan-gosling.gif" height="460px" /></code>
</p>
</section>
<section>
<br>
<p>Hey girl</p>
<img src="images/01-jan/gosling.gif" alt="Hey Girl" height="76%"/>
</section>
<section>
<h1>HTML Structure</h1>
<br><br>
<p class="fragment" data-fragment-index="0">
Every HTML page requires 4 tags:
</p>
<br>
<div class="fill-row" style="align-items: flex-start;">
<code class="fragment" data-fragment-index="1" style="flex: none; flex-basis: 50%; vertical-align: top;"><!DOCTYPE html>
<div class="fragment" data-fragment-index="2"><html></div>
<div class="fragment" data-fragment-index="3"> <head>...</head></div>
<div class="fragment" data-fragment-index="4"> <body>...</body></div>
<div class="fragment" data-fragment-index="2"></html></div>
</code>
</div>
</section>
<section>
<h1>HTML Tags</h1><br>
<p class="fragment" data-fragment-index="0">
A few to get you started...
</p>
<br>
<code class="fragment" style="width:75%;margin: 0 auto;" data-fragment-index="1"><div>Don't forget the garnish!</div>
<div class="fragment" data-fragment-index="2"><h1>Watermelon Moscow Mule</h1></div>
<div class="fragment" data-fragment-index="3"><h6>A Fruity Twist on a Classic Cocktail</h6></div>
<div class="fragment" data-fragment-index="4"><p>This is one of my favorites!</p></div>
<div class="fragment" data-fragment-index="5">
<div><br>
<div class="fragment" data-fragment-index="6">
<ol><br>
<div class="fragment" data-fragment-index="7">
<li>Watermelon</li><br>
<li>Vodka</li><br>
<li>Lime juice</li><br>
</div>
</ol><br>
</div>
</div><br>
</div>
</code>
</section>
<section>
<div>
<br>
<div>Don't forget the garnish!</div>
<h1>Watermelon Moscow Mule</h1>
<h6>A Fruity Twist on a Classic Cocktail</h6>
<p>This is one of my favorites!</p><br>
<div>
<ol>
<li>Watermelon</li>
<li>Vodka</li>
<li>Lime juice</li>
</ol>
</div>
</div>
</section>
<section>
<h1>A few more...</h1><br>
<code class="fragment" data-fragment-index="1" style="width:75%;margin: 0 auto;"><a href="http://www.pinterest.com" target="_blank">
<div class="fragment" data-fragment-index="2"> Go to Pinterest</div>
<div class="fragment" data-fragment-index="1"></a></div>
</code>
<div class="fragment" data-fragment-index="3">
<a href="http://pinterest.com" target="_blank">Go to Pinterest</a>
</div>
<br>
<code class="fragment" data-fragment-index="4" style="width:75%;margin: 0 auto;"><a href="http://www.pinterest.com" target="_blank">
<div class="fragment" data-fragment-index="5"> <img src="images/pinterest-logo.png"/></div>
<div class="fragment" data-fragment-index="4"></a></div>
</code>
<div class="fragment" data-fragment-index="6">
<a href="http://pinterest.com" target="_blank"><img src="images/01-jan/pinterest.png" width="80px" height="80px"/></a>
</div>
</section>
<section>
<div class="fill-row">
<h5 style="flex: 30%">
<img src="images/01-jan/HTML5.png" /><br>
New tags.<br>Much cool.
</h5>
<div style="flex: 70%">
<p class="fragment" style="text-align:left;">Standardized in 2014</p>
<p class="fragment" style="text-align:left;">Made web development <i>easier</i></p>
<code class="fragment" style="width:60%;"><header></header><br>
<div class="fragment"><footer></footer></div>
<div class="fragment"><section></section></div>
<div class="fragment"><article></article></div>
<div class="fragment"><nav></nav></div>
</code>
<code class="fragment" style="width:60%;"><audio></audio><br>
<div class="fragment"><video></video></div>
</code>
<code class="fragment" style="width:60%;"><svg></svg><br>
<div class="fragment"><canvas></canvas></div>
</code>
<p class="fragment" style="text-align:left;">New form attributes:<br>
number, date, time, range, etc</p>
</div>
</div>
</section>
<!-- break slide -->
<section>
<h1 class="break">Do the Worksheet: Part 1</h1>
<div class="fill-col">
<p>Wifi: username / password</p>
<table class="tocTable" style="margin: 0 auto;">
<tr>
<td>Install the Tools</td>
<td><a href="http://bit.ly/CnCTheTools" target="_blank">http://bit.ly/CnCTheTools</a></td>
</tr>
<tr>
<td>View these slides</td>
<td><a href="http://bit.ly/CnCJanSlides" target="_blank">http://bit.ly/CnCJanSlides</a></td>
</tr>
<tr>
<td>Do the worksheet</td>
<td><a href="http://bit.ly/CnCJanWork" target="_blank">http://bit.ly/CnCJanWork</a></td>
</tr>
</table>
<div class="row-line-tools">
<span class="row-line-tools"><a href="https://www.google.com/chrome/browser/desktop/index.html" target="_blank"><img src="images/chrome.png"/></a></span>
<span class="row-line-tools"><a href="https://atom.io/" target="_blank"><img src="images/atom.png"/></a></span>
<span class="row-line-tools"><a href="https://git-scm.com/downloads" target="_blank"><img src="images/git.png"/></a></span>
<span class="row-line-tools"><a href="https://www.iterm2.com/" target="_blank"><img src="images/terminal.png"/></a></span>
</div>
<div class="license-container">
<img src="images/license_chooser_cc.png" class="license-img" /><img src="images/license_chooser_by.png" class="license-img" /><img src="images/license_chooser_sa.png" class="license-img" />
<p class="license-text">
All slides in this presentation are licensed by <a href="http://kcwomenintech.org/" target="_blank">http://kcwomenintech.org</a> under a <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
</div>
</div>
</section>
<!-- part 2 -->
<section>
<h1>HTML Tags (Revisited)</h1><br>
<p class="fragment" data-fragment-index="0">
These tags got you started...
</p>
<br>
<code class="fragment" style="width: 75%; margin: 0 auto;" data-fragment-index="1"><div>Don't forget the garnish!</div>
<div data-fragment-index="2"><h1>Watermelon Moscow Mule</h1></div>
<div data-fragment-index="3"><h6>A Fruity Twist on a Classic Cocktail</h6></div>
<div data-fragment-index="4"><p>This is one of my favorites!</p></div>
<div data-fragment-index="5">
<div><br>
<div data-fragment-index="6">
<ol><br>
<div data-fragment-index="7">
<li>Watermelon</li><br>
<li>Vodka</li><br>
<li>Lime juice</li><br>
</div>
</ol><br>
</div>
</div><br>
</div>
</code>
</section>
<section>
<div>
<br>
<div>Don't forget the garnish!</div>
<h1>Watermelon Moscow Mule</h1>
<h6>A Fruity Twist on a Classic Cocktail</h6>
<p>This is one of my favorites!</p><br>
<div>
<ol>
<li>Watermelon</li>
<li>Vodka</li>
<li>Lime juice</li>
</ol>
</div>
</div>
</section>
<section>
<div>
<br>
<div style="position: fixed;top: 50px; left:0px; font-style: italic; font-size: 22px; background-color: hotpink;">Don't forget the garnish!</div><br>
<h1 style="color: hotpink">Watermelon Moscow Mule</h1>
<h6 style="font-family: Impact; font-size: 48px; color: #d4edb6">A Fruity Twist on a Classic Cocktail</h6>
<p style="font-size: 32px;margin-bottom: 20px;">This is one of my favorites!</p>
<div style="background-color:lightpink; padding: 2px 80px;">
<ol style="list-style-image: url('images/list-item.png'); ">
<li>Watermelon</li>
<li>Vodka</li>
<li>Lime juice</li>
</ol>
</div>
</div>
<br><code class="fragment" style="width: 100%;"><h1 class="fancy-title">Watermelon Moscow Mule</h1></code>
</section>
<section>
<h1>Attributes</h1><br>
<p class="fragment">Values added to HTML elements<br>that configure the element</p><br>
<p class="fragment">Only in the opening tag</p><br>
<code class="fragment" style="width:60%;margin: 0 auto;"><a <font style="color:#a3a457">href</font>="tiag.com"></a><br>
<div class="fragment"><img <font style="color:#a3a457">src</font>="images/whatevs.gif"/></div>
<div class="fragment"><header <font style="color:#a3a457">class</font>="site-header"></header></div>
</code>
<br>
<p class="fragment"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes" target="_blank"><font style="font-size: 36px">https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes</font></a></p>
</section>
<section>
<h1>Best Practices & Standards</h1><br>
<p class="fragment" data-fragment-index="0">
Don't forget the following...
</p>
<code class="fragment" data-fragment-index="1" style="width:75%; margin: 0 auto;"><!--
<div class="fragment" data-fragment-index="2"> This is a comment</div>
<div class="fragment" data-fragment-index="1">--></div>
</code>
<div style="padding-top: 30px;">
<code class="fragment" data-fragment-index="3" style="color: green; width:75%; margin: 0 auto;"><p></p><div class="fragment" data-fragment-index="4" style="color: red;"><P></P></div></code>
</div>
<div style="padding-top: 30px;">
<code class="fragment" data-fragment-index="5" style="color: green; width:75%; margin: 0 auto;"><p>A whole paragraph!</p><div class="fragment" data-fragment-index="6" style="color: red;"><p>Ruh roh, now everything's a paragraph</div></code>
</div>
</section>
<section>
<h1>More Good Things</h1><br>
<p class="fragment" data-fragment-index="0">
Indentation FTW
</p>
<code class="fragment" data-fragment-index="1" style="color: green; width:60%; margin: 0 auto;">
<div><br>
<ol><br>
<li>Watermelon</li><br>
<li>Vodka</li><br>
<li>Lime juice</li><br>
</ol><br>
</div><br>
<div class="fragment" data-fragment-index="2" style="color: red;">
<div><br>
<ol><br>
<li>Watermelon</li><br>
<li>Vodka</li><br>
<li>Lime juice</li><br>
</ol><br>
</div><br>
</div>
</code>
</section>
<section>
<h1>Debugging Tools</h1><br>
<p class="fragment">Chrome Developer Tools</p>
<p class="fragment" style="font-size: 6.5vh;">(Win) ctrl + shift + i (Mac) cmd + opt + i</p><br>
<p class="fragment"><a href="https://validator.w3.org/" target="_blank">W3C HTML Validator</a></p><br>
<p class="fragment"><a href="http://www.w3schools.com" target="_blank">W3 Schools ("Try It Yourself")</a></p><br>
<p class="fragment"><a href="http://codepen.io/" target="_blank">CodePen.io</a></p><br>
<p class="fragment"><a href="https://developer.mozilla.org/en-US" target="_blank">Mozilla Developer Network (MDN)</a></p><br>
</section>
<section>
<h1>Inspect Source</h1>
<img src="images/01-jan/screen2.png" width="80%"/>
<p>A good example: <a href="http://weavegotchacovered.com/" target="_blank">weavegotchacovered.com</a></p>
</section>
<!-- break slide -->
<section>
<h1 class="break">Do the Worksheet: Part 2</h1>
<div class="fill-col">
<p>Wifi: username / password</p>
<table class="tocTable" style="margin: 0 auto;">
<tr>
<td>Install the Tools</td>
<td><a href="http://bit.ly/CnCTheTools" target="_blank">http://bit.ly/CnCTheTools</a></td>
</tr>
<tr>
<td>View these slides</td>
<td><a href="http://bit.ly/CnCJanSlides" target="_blank">http://bit.ly/CnCJanSlides</a></td>
</tr>
<tr>
<td>Do the worksheet</td>
<td><a href="http://bit.ly/CnCJanWork" target="_blank">http://bit.ly/CnCJanWork</a></td>
</tr>
</table>
<div class="row-line-tools">
<span class="row-line-tools"><a href="https://www.google.com/chrome/browser/desktop/index.html" target="_blank"><img src="images/chrome.png"/></a></span>
<span class="row-line-tools"><a href="https://atom.io/" target="_blank"><img src="images/atom.png"/></a></span>
<span class="row-line-tools"><a href="https://git-scm.com/downloads" target="_blank"><img src="images/git.png"/></a></span>
<span class="row-line-tools"><a href="https://www.iterm2.com/" target="_blank"><img src="images/terminal.png"/></a></span>
</div>
<div class="license-container">
<img src="images/license_chooser_cc.png" class="license-img" /><img src="images/license_chooser_by.png" class="license-img" /><img src="images/license_chooser_sa.png" class="license-img" />
<p class="license-text">
All slides in this presentation are licensed by <a href="http://kcwomenintech.org/" target="_blank">http://kcwomenintech.org</a> under a <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
</div>
</div>
</section>
<!-- part 3 -->
<section>
<h1>Images</h1>
<br>
<p class="fragment">
<code class="fragment" style="width:90%; margin: 0 auto;"><img src="images/lyndsey-scott.png" alt="Beauty AND Brains" /></code>
</p>
<br>
<p class="fragment">
Alt tags for accessibility and SEO
</p>
<br>
<p class="fragment">
Accessibility (a11y) removes barriers<br>that prevent interaction with (or access to)<br>web sites by people with disabilities.
</p><br>
<p class="fragment">
<font style="color:#c7bc75">S</font>earch
<font style="color:#c7bc75">E</font>ngine
<font style="color:#c7bc75">O</font>ptimization
</p>
</section>
<section>
<br>
<img src="images/01-jan/lyndsey-scott.png" alt="Beauty AND Brains" height="80%" />
<p>Lyndsey Scott</p>
</section>
<section>
<img src="images/01-jan/code-made-cool.jpg" alt="Code Made Cool" height="90%" />
</section>
<section>
<h1>Forms</h1>
<p class="fragment" data-fragment-index="1" style="margin-top:16px;">Used to collect user input<br>
<img src="images/01-jan/form.png" alt="Form" height="85%" width="85%"/>
</p>
<p class="fragment" data-fragment-index="2" style="margin-top:16px;">
Made up of a tag and some attributes:
</p>
<code class="fragment" data-fragment-index="3" style="font-size: 3.6vh; width:90%; margin: 0 auto;"><form action=”submit-form.php” method="POST">
<div class="fragment" data-fragment-index="4"> <input type="text" id="text_input" placeholder="Name" required/></div>
<div class="fragment" data-fragment-index="5"> <input type="email" id="text_input" placeholder="[email protected]"/></div>
<div class="fragment" data-fragment-index="6"> <select><br>
<option value="Watermelon">Watermelon</option><br>
<option value="Peach">Peach</option><br>
</select></div>
<div class="fragment" data-fragment-index="7"> <button type="submit" disabled>Submit</button></div>
<div class="fragment" data-fragment-index="3"></form></div>
</code>
</section>
<section>
<h1>Form tags</h1>
<img src="images/01-jan/codepen.png" height="75%" /><br>
<a href="http://codepen.io/CodingCocktailsKC/pen/LbwEGa" target="_blank">http://codepen.io/CodingCocktailsKC/pen/LbwEGa</a>
</section>
<section>
<h1><font style="color: #d0c88b">Get</font> vs Post</h1><br><br>
<p class="fragment">Requesting data to use, not changing it</p><br>
<p class="fragment">Searching or filtering</p><br><br>
<p class="fragment">http://mymovieform.com?genre=drama</p>
</section>
<section>
<h1>Get vs <font style="color: #d0c88b">Post</font></h1><br>
<p class="fragment">Changing or adding data</p><br>
<p class="fragment">Create a calendar event, change password, etc</p><br>
<p class="fragment"><img src="images/01-jan/form-data.png" width="60%"/></p>
</section>
<section>
<img src="images/01-jan/data.jpg" height="90%"/>
</section>
<section><br>
<img src="images/01-jan/client-server.png" height="80%" width="80%"/>
</section>
<section>
<h1>Server side processing</h1>
<img src="images/01-jan/formspree.png" width="85%" style="margin-top:16px;"/>
<p><a href="https://formspree.io">https://formspree.io</a></p>
</section>
<section>
<h1>Organizing a form</h1><br>
<code class="fragment" style="width:85%; margin: 0 auto;">
<label <font style="color:#a3a457">for=”question”</font>>Favorite drink?</label><br>
<input type=”text” name=”question” <font style="color:#a3a457">id=”question"</font> /><br>
</code>
<br>
<code class="fragment" style="width:85%; margin: 0 auto;">
<font style="color:#9d81a2"><fieldset></font><br>
<font style="color:#9d81a2"> <legend></font>Serious Question<font style="color:#9d81a2"></legend></font><br>
<label <font style="color:#a3a457">for=”question”</font>>Favorite drink?</label><br>
<input type=”text” name=”question” <font style="color:#a3a457">id=”question"</font> /><br>
<font style="color:#9d81a2"></fieldset></font>
</code>
</section>
<!-- break slide -->
<section>
<h1 class="break">Do the Worksheet: Part 3</h1>
<div class="fill-col">
<p>Wifi: username / password</p>
<table class="tocTable" style="margin: 0 auto;">
<tr>
<td>Install the Tools</td>
<td><a href="http://bit.ly/CnCTheTools" target="_blank">http://bit.ly/CnCTheTools</a></td>
</tr>
<tr>
<td>View these slides</td>
<td><a href="http://bit.ly/CnCJanSlides" target="_blank">http://bit.ly/CnCJanSlides</a></td>
</tr>
<tr>
<td>Do the worksheet</td>
<td><a href="http://bit.ly/CnCJanWork" target="_blank">http://bit.ly/CnCJanWork</a></td>
</tr>
</table>
<div class="row-line-tools">
<span class="row-line-tools"><a href="https://www.google.com/chrome/browser/desktop/index.html" target="_blank"><img src="images/chrome.png"/></a></span>
<span class="row-line-tools"><a href="https://atom.io/" target="_blank"><img src="images/atom.png"/></a></span>
<span class="row-line-tools"><a href="https://git-scm.com/downloads" target="_blank"><img src="images/git.png"/></a></span>
<span class="row-line-tools"><a href="https://www.iterm2.com/" target="_blank"><img src="images/terminal.png"/></a></span>
</div>
<div class="license-container">
<img src="images/license_chooser_cc.png" class="license-img" /><img src="images/license_chooser_by.png" class="license-img" /><img src="images/license_chooser_sa.png" class="license-img" />
<p class="license-text">
All slides in this presentation are licensed by <a href="http://kcwomenintech.org/" target="_blank">http://kcwomenintech.org</a> under a <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
</div>
</div>
</section>
<!-- part 4 -->
<section>
<h1>Tables</h1>
<img src="images/01-jan/tablecloth.gif" alt="Tables" width="80%"/>
</section>
<section>
<h1>Just Like a Spreadsheet</h1><br>
<p class="fragment">Headers, columns, rows</p>
<p class="fragment"><img src="images/01-jan/spreadsheet.jpg" width="80%"/></p>
</section>
<section>
<h1>The Dark Ages</h1>
<p class="fragment" style="font-size:6.2vh;">Prior to CSS, <table> elements were used to create layout</p>
<img class="fragment" height="70%" src="images/01-jan/the-horror.gif"/>
</section>
<section>
<h1>A Table Layout</h1>
<img src="images/01-jan/nested-table.png" height="80%"/>
</section>
<section>
<h4>What <i>Should</i> You use Tables for?</h4>
<br>
<p class="fragment">HTML Emails & Tabular Data</p>
<br>
<div class="fragment">
<table class="paddedTable" style="font-size: 3.1vh; margin: 0 auto;">
<tr>
<td>City</td>
<td>Gender Pay Gap</td>
<td>Income After Housing Cost</td>
<td>Tech Jobs Filled by Women</td>
<td>4 yr Tech Employment Growth</td>
<td>Index</td>
</tr>
<tr>
<td>Washington<br>DC</td>
<td>94.8%</td>
<td>$56,416</td>
<td>41.0%</td>
<td>17%</td>
<td>88.18</td>
</tr>
<tr>
<td>Kansas City<br>MO</td>
<td>103.4%</td>
<td>$59,416</td>
<td>30.3%</td>
<td>10%</td>
<td>83.18</td>
</tr>
<tr>
<td>Baltimore<br>MD</td>
<td>88.4%</td>
<td>$55,364</td>
<td>32.5%</td>
<td>22%</td>
<td>81.53</td>
</tr>
<tr>
<td>Indianapolis<br>IN</td>
<td>102.2%</td>
<td>$51,393</td>
<td>28.5%</td>
<td>11%</td>
<td>73.65</td>
</tr>
<tr>
<td>New Orleans<br>LA</td>
<td>99.8%</td>
<td>$40,355</td>
<td>34.6%</td>
<td>32%</td>
<td>73.40</td>
</tr>
</table>
<p style="font-size: 28px"><br><a href="https://smartasset.com/mortgage/best-cities-women-in-tech-2017">https://smartasset.com/mortgage/best-cities-women-in-tech-2017</a></p>
</div>
</section>
<section>
<h1>The DOM</h1>
<img src="images/01-jan/the-dom.jpg" alt="The DOM" width="65%"/>
</section>
<section>
<h2>HTML Structure (Revisited)</h2>
<div class="fill-row" style="align-items: flex-start;">
<div style="width:50%;">
<code class="fragment" data-fragment-index="1"><!DOCTYPE html>
<div data-fragment-index="2"><html></div>
<div data-fragment-index="3"> <head>...</head></div>
<div data-fragment-index="4"> <body>...</body></div>
<div data-fragment-index="2"></html></div>
</code>
</div>
<img class="fragment" data-fragment-index="5" src="images/01-jan/anatomy-xml.png" style="width:30%;"/>
</div>
</section>
<section>
<h3>The Document Object Model</h3>
<img src="images/01-jan/dom-model.svg" height="85%"/>
</section>
<section>
<h1>What Browsers Do</h1><br>
<ol class="normal">
<li class="fragment">Download the HTML file (Server -> Client)</li>
<li class="fragment">Parse the HTML (code -> DOM)</li>
<li class="fragment">Load and apply CSS</li>
<li class="fragment">Load and apply Javascript</li>
<li class="fragment">Render the DOM visually *</li>
</ol>
</section>
<section>
<h4>What could possibly go wrong?</h4><br>
<ol class="normal">
<li class="fragment">Can't find HTML file on server</li>
<li class="fragment">Parse error: Missing end tag</li>
<li class="fragment">Can't find CSS file on server</li>
<li class="fragment">Can't find JS file on server</li>
<li class="fragment">Parse error in <font style="font-style: italic">those</font> files</li>
</ol>
</section>
<section>
<h1>When you're stuck</h1><br>
<p class="fragment">Pay attention to your IDE<br>(syntax highlighting and linter warnings)</p><br>
<p class="fragment">Use a validator</p><br>
<p class="fragment">Look for missing end tags (indent!)</p><br>
<p class="fragment">Peers, co-workers, KCWiT Slack</p><br>
<p class="fragment"><a href="http://stackoverflow.com" target="_blank"/>stackoverflow.com</a></p><br>
</section>
<section>
<br>
<img src="images/01-jan/not-worthy.gif" height="75%" />
<p>The Google</p>
</section>
<!-- break slide -->
<section>
<h1 class="break">Do the Worksheet: Part 4</h1>
<div class="fill-col">
<p>Wifi: username / password</p>
<table class="tocTable" style="margin: 0 auto;">
<tr>
<td>Install the Tools</td>
<td><a href="http://bit.ly/CnCTheTools" target="_blank">http://bit.ly/CnCTheTools</a></td>
</tr>
<tr>
<td>View these slides</td>
<td><a href="http://bit.ly/CnCJanSlides" target="_blank">http://bit.ly/CnCJanSlides</a></td>
</tr>
<tr>
<td>Do the worksheet</td>
<td><a href="http://bit.ly/CnCJanWork" target="_blank">http://bit.ly/CnCJanWork</a></td>
</tr>
</table>
<div class="row-line-tools">
<span class="row-line-tools"><a href="https://www.google.com/chrome/browser/desktop/index.html" target="_blank"><img src="images/chrome.png"/></a></span>
<span class="row-line-tools"><a href="https://atom.io/" target="_blank"><img src="images/atom.png"/></a></span>
<span class="row-line-tools"><a href="https://git-scm.com/downloads" target="_blank"><img src="images/git.png"/></a></span>
<span class="row-line-tools"><a href="https://www.iterm2.com/" target="_blank"><img src="images/terminal.png"/></a></span>
</div>
<div class="license-container">
<img src="images/license_chooser_cc.png" class="license-img" /><img src="images/license_chooser_by.png" class="license-img" /><img src="images/license_chooser_sa.png" class="license-img" />
<p class="license-text">
All slides in this presentation are licensed by <a href="http://kcwomenintech.org/" target="_blank">http://kcwomenintech.org</a> under a <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
</div>
</div>
</section>
<!-- end -->
<section>
<h1>Questions?</h1>
<img src="images/01-jan/questions.gif" alt="Questions" height="80%" />
</section>
<section>
<h1>What's Next</h1>
<br>
<ol class="normal">
<li class="fragment">Find a buddy</li>
<li class="fragment">Take <a href="http://bit.ly/CocktailsQuiz" target="_blank">the quiz</a></li>
<li class="fragment">Join <a href="https://kcwit.slack.com/messages/generalchat/" target="_blank">Slack</a></li>
<li class="fragment">Finish <a href="http://bit.ly/CnCJanWork" target="_blank">tonight's worksheet</a></li>
<li class="fragment">Find an <a href="http://lmgtfy.com/?q=HTML+tutorial" target="_blank">online tutorial on HTML</a></li>
<li class="fragment">Register for <a href="http://codingandcocktails.kcwomenintech.org/#signup" target="_blank">next month's event</a></li>
</ol>
<img src="images/logo.png" alt="Coding & Cocktails" style="position: absolute; bottom: 0px; right: 0px;" height="300vh" />
</section>
<section>
<h1>Keep up with us</h1>
<br><br>
<a class="fragment" href="http://codingandcocktails.kcwomenintech.org" target="_blank">codingandcocktails.kcwomenintech.org</a>
<br><br>
<a class="fragment" href="https://www.facebook.com/KCWomenInTech/" target="_blank"><img src="images/fb.png" width="120"/></a>
<a class="fragment" href="https://www.eventbrite.com/o/kansas-city-women-in-technology-4568105457" target="_blank"><img src="images/eventbrite.png" width="350"/></a>
<a class="fragment" href="https://www.meetup.com/Kansas-City-Women-in-Technology/" target="_blank"><img src="images/meetup.png" width="190"/></a>
<a class="fragment" href="https://twitter.com/KCWomeninTech" target="_blank"><img src="images/twitter.png" width="150"/></a>
<br><br>
<p class="fragment">#LadyDevs #KCWiT #CodingAndCocktailsKC</p>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
width: '100%',
height: '100%',
history: true,
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>