-
Notifications
You must be signed in to change notification settings - Fork 3
/
session1.html
2151 lines (1945 loc) · 76.7 KB
/
session1.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">
<head>
<meta charset="utf-8">
<title>Session 1 — HTML/CSS — Girl Develop It</title>
<meta name="description" content="This is the official Girl Develop It Core HTML/CSS curriculum. It was developed through the contributions of Pamela Fox, Alexis Goldstein, Erin M. Kidwell, Izzy Johnston, Jen Myers, Cara Jo Miller, Laura Eagin, Nicole Rodriguez, and Leeann Drees.
The course is meant to be taught in 2 four-hour sections. Each of the slides and practice files are customizable according to the needs of a given class or audience.">
<meta name="author" content="Girl Develop It">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/gdiaa.css" id="theme">
<link rel="stylesheet" href="lib/css/light.css">
<link rel="stylesheet" href="css/print/pdf.css" media="print">
<script src="lib/js/head.min.js"></script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- INTRO -->
<section>
<!-- Prep -->
<section>
<h3>Set Up Your Computer</h3>
<!-- TODO -->
<p class="box">Slides:
<a href="http://bit.ly/gdiaa-hc">bit.ly/gdiaa-hc</a>
</p>
<p class="copy--small">
<img src="images/chrome_logo.jpg" style="border:none; box-shadow: none; margin: 0 10px;" />
<br/>Install
<strong>Google Chrome</strong>, if you don't have it already.
<a href="http://google.com/chrome">google.com/chrome</a>
</p>
<!-- <p class="box copy--small"><img src="images/web-maker-icon.png" style="width: 45px;border:none; box-shadow: none; margin: 0 10px;"/><br/>Add the Chrome Extension <strong>Web Maker</strong><br />(Chrome -> Window -> Extentions -> "Get more extension" -> Search "Web Maker")</p> -->
<p class="box copy--small">
<img src="images/vs-code-icon.png" alt="Visual Studio Code - Download" style="border:none; box-shadow: none; width: 40px; margin: 0 10px;"
/>
<br />Download
<strong>Visual Studio Code</strong>,
<a href="https://www.visualstudio.com/downloads/">https://www.visualstudio.com/downloads/</a>
<br />
<small>(free, Windows, macOS, or Linux)</small>
</p>
<p>
<small>
<span style="yellow">Bonus:</span> Find a few images to use later when we start building web pages.</small>
</p>
</section>
<!-- Title -->
<section>
<img src="images/gdi_logo_badge.png" class="img--bare" height="450px" />
<div class="box--small">
<h3>
<span class="green">Beginning HTML and CSS</span>
</h3>
<h4>
<span class="blue">Session 1</span>
</h4>
</div>
</section>
<!-- Overview -->
<section>
<h3>Overview</h3>
<ul class="list--tall box--small">
<li>Anatomy of a Website</li>
<li>What is HTML?</li>
<li>What is CSS?</li>
<li>Connecting CSS to HTML</li>
<li>Using the Inspector</li>
</ul>
</section>
</section>
<!-- What is HTML?-->
<section>
<section>
<h3>Anatomy of a Website</h3>
<p class="box">A website is a way to share content with the world.</p>
<p>We use
<span class="green">HTML</span> to give our content
<span class="green">structure</span>.</p>
<p class="box">And we use
<span class="blue">CSS</span> to make it
<span class="blue">look good</span>.</p>
</section>
<!-- Roles of HTML v CSS -->
<section>
<h3>Anatomy of a Website</h3>
<div class="blue box--small copy--small" style="float: left; width: 33.333%;">
<p>Content</p>
<img src="images/example_site_content.jpg" alt="Example of site content" />
</div>
<div class="box--small copy--small" style="float: left; width: 33.333%;">
<p>
<span class="green">+ HTML</span> (Structure)</p>
<img src="images/example_site_HTML.jpg" alt="Example of site structure" />
</div>
<div class="box--small copy--small" style="float: left; width: 33.333%;">
<p>
<span class="red">+ CSS</span> (Presentation)</p>
<img src="images/example_site_HTML_CSS.jpg" alt="Example of site with CSS" />
</div>
</section>
<section>
<h3>What is HTML?</h3>
<p class="box">
<b class="red">H</b>yper
<b class="red">T</b>ext
<b class="red">M</b>arkup
<b class="red">L</b>anguage</p>
<p class="fragment box--small copy--small">A language for describing web documents</p>
<p class="fragment box--small copy--small">Uses
<span class="green">tags</span> to describe different
<span class="blue">types</span> of content
<br/>
<span class="copy--xsmall">Like paragraphs, headers, lists, bold or italic words</span>
</p>
</ul>
</section>
<section>
<h3>What is HTML?</h3>
<p class="box--small">Let's examine this simple website:</p>
<a href="http://gdiannarbor.com" target="_blank">
<img src="images/homepage-view.png" width="600">
</a>
<aside class="notes">
<p>just talk about what it looks like - the content on the page</p>
</aside>
</section>
<section>
<h3>What is HTML?</h3>
<p class="box--small">If you
<strong>'view page source'</strong>, you see this — it's HTML!</p>
<a href="view-source:http://www.gdiannarbor.com/" target="_blank">
<img src="images/homepage-html.png" width="850">
</a>
</section>
<!-- History of HTML-->
<!-- <section>
<h3>History of HTML</h3>
<div class="left" style="width: 75%;">
<ul>
<li>Invented by Tim Berners-Lee</li>
<li>Created "hypertext" to share<br/>scientific papers</li>
<li>First web page August 6, 1991</li>
<li>Standardized by w3 Consortium <br/>(pack of super nerds)</li>
</ul>
</div>
<div class="right" style="width: 25%;"><img src="images/tim.png" width="300px"><br/><p style="font-size: .4em; color: #888; width: 300px;">Tim Berners-Lee speaking at SXSW 2013.<br/><em>Photo credit: Dennis Lembree</em></p></div>
</section> -->
<!-- Terms-->
<section>
<h3>Terms</h3>
<ul class="list--tall box">
<li>
<div class="fragment">
<span class="green">Web design: </span>The process of using
<strong>graphic design software</strong>
<em>OR</em>
<strong>HTML & CSS</strong> to
<i>design</i> a website.</div>
</li>
<li>
<div class="fragment">
<span class="green">Web development: </span>The process of
<strong>programming web applications</strong> with a variety of tools.</div>
</li>
<li>
<div class="fragment">
<span class="blue">Front end: </span>The
<strong>outwardly visible</strong> elements of a website or application.</div>
</li>
<li>
<div class="fragment">
<span class="blue">Back end: </span>The
<strong>inner workings and functionality</strong> of a website or application.</div>
</li>
</ul>
</section>
</section>
<!-- Project Setup -->
<section>
<section>
<h3>What we'll be building today</h3>
<div class="left left-align" style="width: 45%;">
<br />
<p>Today we will be learning how to code a site from scratch using paragraphs, headers, links, images, and lists.</p>
<br
/>
<p>We'll add a tiny bit of CSS for colors & fonts, but we're saving CSS layouts for tomorrow.</p>
</div>
<div class="right" style="width: 45%;">
<img src="images/making-this-today.png" />
</div>
</section>
<!-- Nitty gritty 2 - Tools -->
<section>
<h3>Tools</h3>
<br/>
<ul>
<li>
<div class="yellow">Browser</div>
<div>
<img src="images/chrome_logo.jpg" style="border:none; box-shadow: none; margin: 0 10px; float: left;" />Chrome</div>
<br/>
</li>
<li>
<div class="yellow">Text Editor</div>
<div>
<img src="images/vs-code-icon.png" style="width: 40px; border:none; box-shadow: none; margin: 0 10px; float: left;"
/>Visual Studio Code - Windows, macOS, & Linux</div>
</li>
</ul>
</section>
<section>
<h3>Visual Studio Setup</h3>
<h4 class="blue">Optional</h4>
<p class="box--small copy--small">Add the Extension
<code>Beautify</code>.
<br />This will format your code. (↑⌘P -> Beautify File or Beautify Selection)</p>
<p class="box--small copy--small">To change your "colors", hit
<code>⌘K then ⌘T,</code> or
<code>ctrl+K then ctrl+T</code> or find "Preferences > Color Theme" in the Menu
<br />Suggestions:
<code>Solarized Light</code> or
<code>Monokai Dark</code>
</p>
</section>
<!-- Folder Structure -->
<section>
<h3>Folder Structure</h3>
<p class="box--small copy--small">A website is basically just a folder full of other folders and files.</p>
<div class="left box--small" style="width: 45%;">
<p class="left-align">
<strong>Today, our folder will contain:</strong>
</p>
<ul class="copy--small">
<li>HTML files</li>
<li>CSS files</li>
<li>images</li>
<li>script files
<small>(not today)</small>
</li>
<li>anything else that will appear on your site
<small>(fonts, videos, etc.)</small>
</li>
</ul>
</div>
<div class="right" style="width: 45%;">
<img src="images/folderstructure2.jpg" style="border:none; box-shadow: none;" />
</div>
</section>
<section>
<h3>Let's Develop It!</h3>
<ul class="copy--small list--tall box--small">
<li>Create a new folder somewhere easily remembered (perhaps your desktop?) called '
<span class="blue">html-site</span>' — no spaces, no caps!</li>
<li>Drag your folder onto the Visual Studio icon to open it in Visual Studio.</li>
<li>Create a new
<span class="green">index.html</span> file.
<br/>
<small>In the Visuals Studio sidebar, click the page+ enter the filename and hit Enter.</small>
</li>
<li>Do the same to create a new
<span class="green">styles.css</span> file.
<br/>
</li>
<li>Make sure both files are saved in the
<span class="blue">html-site</span> folder!</li>
</ul>
<img src="images/folder.png">
</section>
</section>
<!-- Anatomy -->
<section>
<!-- HTML element-->
<section>
<h3>Anatomy of an HTML element</h3>
<ul class="copy--small list--bare">
<li class="box--small">
<strong class="blue">Element</strong>
<ul>
<li>An individual component of HTML</li>
<li>Paragraph, heading, table, list, link, image, header, footer, etc.</li>
<li>Elements are identified by their tags</li>
</ul>
</li>
<li class="fragment">
<div style="float: left; width: 48%;">
<strong class="blue">Tag</strong>
<ul>
<li>Marks the beginning & end of an element</li>
<li>Opening tag and Closing Tag
<li>Tags contain characters that indicate the tag's purpose</li>
</ul>
</div>
<div style="float: right; width: 48%;">
<pre><code contenteditable class="html">
<tagname>Stuff in the middle</tagname>
<p>This is a sample paragraph.</p>
</code></pre>
</div>
</li>
</ul>
</section>
<!--anatomy of a tag -->
<section>
<h3>Tag Breakdown</h3>
<img src="images/tagbreakdown.png" alt="Tag breakdown" style="border: none; box-shadow: none; height: 600px;" />
</section>
<section>
<h3>Types of HTML Elements</h3>
<p class="box--small ">
<strong class="blue">Container Element</strong>
</p>
<ul class=" copy--small">
<li>An element that can contain other elements or content
</li>
<li>A paragraph (<p>) contains text</li>
</ul>
<pre><code contenteditable class="html"><p>Text goes here</p>
<p>Text goes <b>here</b>.</p></code></pre>
</section>
<section>
<h3>Types of HTML Elements</h3>
<p class="box--small">
<strong class="blue">Stand Alone Element</strong>
</p>
<ul class="copy--small">
<li>An element that cannot contain anything else</li>
<li>Referred to as
<strong>self-closing tags</strong>
</li>
</ul>
<pre><code contenteditable class="html"><hr/>
<br/>
<img src="path_to_image.jpg" /></code></pre>
</section>
<section>
<h3>Anatomy of an HTML Element</h3>
<p class="copy--small box--small">
<code><p attribute="value">Some content.</p></code>
</p>
<div class="box--small">
<p>
<strong class="blue">Attributes</strong>
</p>
<ul class="copy--small">
<li>Provides additional information about the HTML element</li>
<li>Class, ID, language, style, identity, source</li>
<li>Placed inside an opening tag, before the right angle bracket.</li>
</ul>
</div>
<div class="box--small">
<p>
<strong class="blue">Values</strong>
</p>
<ul class="copy--small">
<li>The value assigned to a given attribute.</li>
<li>Wrapping values in quotes is optional, but is helpful for readability.</li>
</ul>
</div>
<pre style="height: 100px; overflow: hidden;"><code contenteditable class="html"><img src="my_picture.jpg" />
<a href="http://girldevelopit.com">GDI</a>
<div class="copyright">© GDI 2013</div>
</code></pre>
</section>
<!-- <section>
<h3>An Example</h3>
<p class="box--small">We have a paragraph of content.</p>
<div class="fragment copy--small" style="width: 48%; float: left">Putting your content into an HTML tag to make it look like a paragraph is Structure
<pre><code contenteditable class="html">
<p>A paragraph is your content</p>
</code></pre>
</div>
<div class="fragment copy--small" style="width: 48%; float: right">
To add the class of <code>blue</code>, we'd put the attribute & value in the opening <code contenteditable><p></code> tag:
<pre><code contenteditable class="html">
<p class="blue">A paragraph is your content</p>
</code></pre>
</div>
</section>
-->
<section>
<h3>Nesting</h3>
<p class="box">Elements can "nest" inside one another</p>
<img src="images/nesting_simple1.png" style="border: none; box-shadow: none;" />
</section>
<section>
<h3>Nesting</h3>
<p class="box">Whichever element OPENS first CLOSES last</p>
<img src="images/nesting_simple2.png" style="border: none; box-shadow: none; width: 560px;" />
</section>
<section>
<h3>Indentation</h3>
<p class="box copy--small">Is
<i>really</i> important for
<strong>readability</strong> and
<strong>debugging</strong>.</p>
<pre><code contenteditable>
<ul>
<li>
<p>A paragraph of content</p>
<p>Another paragraph of content</p>
</li>
<li>Another List Item</li>
</ul>
</code></pre>
</section>
</section>
<!-- HTML Page-->
<section>
<section>
<h3>doctype</h3>
<p class="copy--small box--small">The first thing on an HTML page is the doctype, which tells the browser what version of the markup language the
page is using.</p>
<hr class="box--small">
<div style="float: left; width: 48%">
<p class="red">In the bad
<em>old days</em>...</p>
<pre><code contenteditable class="html">
<!doctype HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
</code></pre>
</div>
<div style="float: left; width: 48%">
<p class="green">Today, we rejoice!</p>
<pre><code contenteditable class="html">
<!doctype html>
</code></pre>
</div>
<small>This tag is special - it has no closing tag.</small>
</section>
<section>
<h3>HTML Tag</h3>
<p class="copy--small box">After
<code contenteditable><doctype></code>, the page content
<br/>must be contained within
<code contenteditable><html></code> tags.</p>
<pre><code contenteditable class="html">
<!doctype html>
<html>
</html>
</code></pre>
</section>
<section>
<h3>Head and Body Tags</h3>
<div class="left-align copy--small box--small">
<p class="fragment">
<span class="green">Head:</span> The
<code contenteditable><head></code> contains the
<strong>title of the page</strong> &
<strong>meta information</strong> about the page. Meta information is not visible to the user, but has many purposes
& is how search engines gather information about your page.</p>
<p class="fragment box--small">
<span class="green">Body:</span> The
<code contenteditable><body></code> contains the actual content of the page. Everything that is contained in the body is visible
to the user.</p>
</div>
<div class="fragment center-align">
<img src="images/head-body-tattoo.jpg" alt="one way to remember it!" width="400">
<br>
<small>One way to remember it!</small>
</div>
</section>
<!--example of head and body tags-->
<section>
<h3>Head and Body Tags
<span class="blue">Example</span>
</h3>
<div class="box">
<a target="_blank" href="http://gdiannarbor.com">
<img src="images/homepage-view.png" alt="example of head and body" width="700" />
</a>
</div>
</section>
<section>
<h3>The Title Tag</h3>
<p class="copy--small box--small">The
<code>title</code> tag allows you to set the text that shows up on the browser tab, as well as in Google search results.</p>
<div>
<pre><code contenteditable class="html"><title>Title of the page</title></code></pre>
</div>
</section>
<section>
<h3>Head, Body, & Title Tags</h3>
<div class="box">
<pre><code contenteditable class="html">
<!doctype html>
<html>
<head>
<title>Title of the page</title>
</head>
<body>
The page content here.
</body>
</html>
</code></pre>
</div>
</section>
<!-- Develop it -->
<section>
<h3>Let's develop it!</h3>
<p class="box--small copy--small blue">Let's set our HTML web page up with the following elements:</p>
<ul class="list--bare center-align">
<li>
<code contenteditable><doctype></code>
</li>
<li>
<code contenteditable><html></code>
</li>
<li>
<code contenteditable><head></code>
</li>
<li>
<code contenteditable><title></code>
</li>
<li>
<code contenteditable><body></code>
</li>
</ul>
<p class="copy--xsmall box">Later we'll add some content to the body!</p>
</section>
<section>
<h3>Check In</h3>
<p class="copy--small box">Your
<span class="blue">index.html</span> file should now have the following content: </p>
<pre><code contenteditable class="html">
<!doctype html>
<html>
<head>
<title>Title of the page </title>
</head>
<body>
The page content here.
</body>
</html>
</code></pre>
</section>
</section>
<!-- Elements -->
<!-- Paragraphs-->
<section>
<section>
<h3>Element:
<span class="yellow">Paragraph</span>
</h3>
<div class="box--small left" style="width:50%">
<pre><code contenteditable class="html">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p> Paragraph 3 </p>
</code></pre>
</div>
<div class="box left-align">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3 </p>
</div>
<p>
<small>* White space in HTML is only for humans and their sanity!</small>
</p>
</section>
<section>
<h3>Example:
<span class="yellow">Paragraphs</span>
</h3>
<p class="box--small copy--small">Paragraphs allow you to format your content in a readable fashion.</p>
<img src="images/example-paragraphs.png" alt="Example of Paragraphs in the wild" />
<p>
<small>* You can edit how paragraphs are displayed with CSS</small>
</p>
</section>
<!-- Headings-->
<section>
<h3>Element:
<span class="yellow">Heading</span>
</h3>
<div class="box--small left" style="width:50%">
<pre><code contenteditable>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</code></pre>
</div>
<div class="box left align-left" style="width:50%">
<h1 style="font-size: 120%; text-shadow: none;">Heading 1</h1>
<h2 style="font-size: 110%">Heading 2</h2>
<h3 style="font-size: 105%">Heading 3</h3>
<h4 style="font-size: 95%">Heading 4</h4>
<h5 style="font-size: 85%">Heading 5</h5>
<h6 style="font-size: 75%">Heading 6</h6>
</div>
<p>
<small>* Heading number indicates hierarchy, not size. Think: Outlines from high school papers</small>
</p>
<p>
<small>* We can change the appearance of headings with CSS</small>
</p>
</section>
<!--heading examples-->
<section>
<h3>Example:
<span class="yellow">Headings</span>
</h3>
<img src="images/example-headings.png" alt="Example of headings" />
</section>
<!-- Em and Strong-->
<section>
<h3>Formatted text</h3>
<p class="box--small copy--small">Here's a paragraph with
<em>Emphasized</em> text and
<strong>Important</strong> text.</p>
<div>
<div class="left" style="width:65%">
<pre><code contenteditable><p>Here's a paragraph with <em>Emphasized</em>
text and <strong>Important</strong> text.</p></code></pre>
</div>
<div class="box left left-align" style="width:35%; font-size: 70%;">
<p>
Emphasized text is
<em>particulary</em> geared towards screen readers because it instructs them to read this text with a different
voice inflection.
</p>
</div>
<p class="box--small">
<small>* Notice: If you want to italicize text for appearance and not
<br />to communicate meaning, you should use CSS.</small>
</p>
</div>
</section>
<!--develop it!-->
<section>
<h3>Let's Develop it!</h3>
<p class="box">Let's add some content to our site!</p>
<p class="copy--small">
Add some short paragraphs to the
<span class="blue"><body></span> of your site.
</p>
<div class="box copy--xsmall">
<p>Don't want to write a bunch of paragraphs off the top of your head?
<br/>Grab some example text from a web generator. Some of our faves:</p>
<ul>
<li>
<a href="http://www.lipsum.com/" target="_blank">Lorem Ipsum</a>
</li>
<li>
<a href="http://www.cupcakeipsum.com/" target="_blank">Cupcake Ipsum</a>
</li>
<li>
<a href="http://www.catipsum.com/" target="_blank">Cat Ipsum</a>
</li>
</ul>
</div>
<p>View in browser!
<br/>
<small>Drag your
<code>index.html</code> file to your browser icon.</small>
</p>
</ul>
</section>
<section>
<h3>Take it Up a Level!</h3>
<ul class="list--tall box">
<li class="left-align">Add a page title in an
<code>h1</code>
</li>
<li class="left-align">Add one of each other level of heading (
<code>h2</code>-
<code>h6</code>) in between your paragraphs. </li>
<li class="left-align">Italicize and bold some text within a few paragraphs.</li>
</ul>
</section>
<section>
<h3>Check In</h3>
<p class="copy--small box--small">Now your
<span class="blue">index.html</span> file should be looking something like this:</p>
<pre><code contenteditable class="html" style="min-height: 300px; max-height: 475px;">
<!doctype html>
<html>
<head>
<title>Title of the page </title>
</head>
<body>
<h1>Heading 1</h1>
<p>A paragraph!</p>
<p>Another paragraph!</p>
<h2>Heading 2</h2>
<p>Yet another paragraph.</p>
<p>I'm a paragraph too!</p>
<h3>Heading 3</h3>
<p>I'm a paragraph with some <em>emphasized</em> text.</p>
<p>I'm a paragraph with <strong>strong</strong> text.</p>
<h4>Heading 4</h4>
<p>Another paragraph!</p>
<p>Maybe your content is more fun?</p>
<h5>Heading 5</h5>
<p>Another paragraph!</p>
<p>Yet another paragraph.</p>
<h6>Heading 6</h6>
<p>Almost done!</p>
<p>Yay!</p>
</body>
</html>
</code></pre>
<p>
<small>* Remember to use spacing and indentation to your benefit</small>
</p>
</section>
</section>
<section>
<!-- Links-->
<section>
<h3>Element:
<span class="yellow">Link</span>
</h3>
<p class="box">Tag:
<span class="blue"><a></a></span>
</p>
<p>The
<code contenteditable>a</code> tag stands for "anchor" and is a hyperlink.</p>
<p class="box copy--small">We surround text or other elements with the
<br/>
<code contenteditable><a></code> tag to turn them into links</p>
</section>
<section>
<h3>Element:
<span class="yellow">Link</span>
</h3>
<img class="box" src="images/linkbreakdown.jpg">
</section>
<section>
<h3>Element:
<span class="yellow">Link</span>
</h3>
<p class="copy--small box--small">Links have three main attributes that go in the opening
<strong>a</strong> tag:</p>
<ul class="list--tall copy--small">
<li>
<span class="blue">Href attribute</span>:
<code contenteditable>href="http://www.girldevelopit.com"</code>
</li>
<li>
<span class="blue">Title attribute
<em>(optional)</em>
</span>:
<code contenteditable>title="Girl Develop It"</code>
</li>
<li>
<span class="blue">Target attribute
<em>(optional)</em>
</span>:
<code contenteditable>target="_blank"</code>
</li>
</ul>
<pre><code contenteditable style="html">
<a href="http://www.girldevelopit.com" title="Girl Develop It" target="_blank">GDI</a>
</code></pre>
<p>
<a href="http://www.girldevelopit.com" title="Girl Develop It" target="_blank" style="text-decoration: underline;">GDI</a>
</p>
</section>
<!-- Link Attributes -->
<section>
<h3>Link Attributes</h3>
<p class="copy--small box--small">Links can have attributes that tell the link to do different actions like open in a new tab, or launch your e-mail
program.</p>
<p>
<small>Links can open in a new window/tab with
<strong>target="_blank"</strong>
</small>
</p>
<pre><code contenteditable>
<a href="home.html" target="_blank">Link Text</a>
</code></pre>
</section>
<section>
<h3>Link Attributes</h3>
<p class="box--small copy--small">Links can open mail programs by inserting
<br/>
<code contenteditable>mailto:</code> directly before the email address.</p>
<pre><code contenteditable>
<a href="mailto:annarbor@girldevelopit.com">E-mail us!</a>
</code></pre>
</section>
<!-- Lets develop it-->
<section>
<h3>Let's Develop It</h3>
<p class="box">Let's add links to our site!</p>
<p class="copy--small">Add links that:</p>
<ul class="list--tall copy--small">
<li>Open in the same window or tab.</li>
<li>Open in a new window or tab.</li>
<li>Link to an e-mail address.</li>
</ul>
</section>
<section>
<h3>Check In</h3>
<p class="copy--small box--small">Our friendly
<span class="blue">index.html</span> file is starting to look a bit like so:</p>
<pre><code contenteditable class="html" style="min-height: 300px; max-height: 475px;">
<!doctype html>
<html>
<head>
<title>Title of the page </title>
</head>
<body>
<h1>Heading 1</h1>
<p>A paragraph!</p>
<p>Another paragraph, with a <a href="http://google.com">link</a>!</p>
<h2>Heading 2</h2>
<p>Yet another paragraph.</p>
<p>I'm a paragraph too, and I have a <a href="http://girldevelopit.com" target="_blank">link that opens in a new tab</a>!</p>
<h3>Heading 3</h3>
<p>I'm a paragraph with some <em>emphasized</em> text.</p>
<p>I'm a paragraph with <strong>strong</strong> text and an <a href="mailto:no-reply@gdidetroit.com">email link</a>.</p>
<h4>Heading 4</h4>
<p>Another paragraph!</p>
<p>Maybe your content is more fun?</p>
<h5>Heading 5</h5>
<p>Another paragraph!</p>
<p>Yet another paragraph.</p>
<h6>Heading 6</h6>
<p>Almost done!</p>
<p>Yay!</p>
</body>
</html>
</code></pre>
</section>
</section>
<section>
<!-- Images-->
<section>
<h3>Element:
<span class="yellow">Image</span>
</h3>
<p class="copy--small box--small">Images have four components</p>
<ul class="copy--xsmall">
<li>
<span class="blue">Tag</span>: <img/></li>
<li>
<span class="blue">Src attribute</span>:
<code contenteditable>src="http://girldevelopit.com/assets/pink-logo.png"</code>
</li>
<li>
<span class="blue">Alt attribute
<em>(optional but recommended)</em>
</span>:
<code contenteditable>alt="Girl Develop It logo"</code>
</li>
<li>
<span class="blue">Title attribute
<em>(optional)</em>
</span>:
<code contenteditable>title="Girl Develop It"</code>
</li>
</ul>
<pre style="height: 60px; overflow: hidden;"><code contenteditable>
<img src="http://www.girldevelopit.com/assets/pink-logo.png" alt="Girl Develop It Logo" title="Girl Develop It"/>
</code></pre>
<img src="images/pink-logo.png" title="Girl Develop It" alt="Girl Develop It Logo" style="border: 0; box-shadow: 0" class="img--bare box--small"
/>
<p>
<small>* Notice: This tag is our first example of a stand-alone or "self-closing" element.</small>
</p>
</section>
<!-- relative & absolute links -->
<section>
<h3>Relative vs. Absolute paths for links & images</h3>
<img src="images/folderstructure1.png" style="float:right; width:30%;">
<ul class="copy--small" style="width: 60%; float:left;">
<li>
<strong class="blue">Relative</strong> paths change depending upon the page the link is on.
<ul style="font-size: 70%; margin-top: 15px;">
<li>Links within the same directory need no path information.
<code contenteditable class="blue">"filename.jpg"</code>
</li>
<li>Subdirectories are listed without preceding slashes.
<code contenteditable class="blue">"images/filename.jpg"</code>
</li>
</ul>
</li>
</ul>
<ul class="copy--small" style="margin-top: 25px; width: 60%; float:left;">
<li>
<strong class="blue">Absolute</strong> paths refer to a specific location of a file, including the domain.
<ul style="font-size: 70%; margin-top: 15px;">
<li>Typically used when pointing to a link that is not within your own domain.
<code contenteditable class="blue">"http://www.girldevelopit.com/chapters/detroit"</code>
</li>
<li>
<strong>Always</strong> includes
<code contenteditable class="blue">http://</code>
</li>
</ul>
</li>
</ul>
</section>
<!-- Line Break-->
<section>
<h3>Element:
<span class="yellow">Line Break</span>
</h3>