-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass1.html
864 lines (759 loc) · 33.9 KB
/
class1.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Class 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, and Jen Myers.
The course is meant to be taught in 4 two-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="reveal/css/reveal.css">
<link rel="stylesheet" href="reveal/css/theme/gdilight.css" id="theme">
<link rel="stylesheet" href="css/class.css">
<!-- For syntax highlighting -->
<!-- light editor--><link rel="stylesheet" href="reveal/lib/css/light.css">
<!-- dark editor<link rel="stylesheet" href="reveal/lib/css/dark.css">-->
<!-- If use the PDF print sheet so students can print slides-->
<link rel="stylesheet" href="reveal/css/print/pdf.css" type="text/css" media="print">
<!--[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">
<!-- Opening slide -->
<section>
<img src="images/gdi_logo_badge.png" class="logo">
<h3>Beginning HTML and CSS</h3>
<h4>Class 1</h4>
</section>
<!-- Welcome-->
<section class="hide-pdf">
<h3>Welcome!</h3>
<div class="left-align">
<p>Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.</p>
<p class="green">Some "rules"</p>
<ul>
<li>We are here for you!</li>
<li>Every question is important</li>
<li>Help each other</li>
<li>Have fun</li>
</ul>
</div>
</section>
<section class="hide-pdf">
<h3>About Your Instructor</h3>
</section>
<section class="hide-pdf">
<h3>Tell us about yourself!</h3>
<div class="left-align">
<ul>
<li>Who are you?</li>
<li>What do you hope to get out of the class?</li>
<li>What is your favorite or dream vacation destination?</li>
</ul>
</div>
</section>
<!-- Get Started -->
<section class="splash">
<h2>Getting Started</h2>
</section>
<!-- Terms-->
<section>
<h3>Terms</h3>
<dl class="left-align">
<dt class="green">Web design</dt>
<dd>The process of planning, structuring and creating a website</dd>
<dt class="green">Web development</dt>
<dd>The process of programming dynamic web applications</dd>
<dt class="green">Front end</dt>
<dd>The outwardly visible elements of a website or application</dd>
<dt class="green">Back end</dt>
<dd>The inner workings and functionality of a website or application.</dd>
</dl>
</section>
<!-- Clients and servers -->
<section>
<h3>Terms: Clients and Servers</h3>
<p>How your computer accesses websites</p>
<img src="images/client-server.png"/>
<dl class="left-align">
<dt class="green">Client-side</dt>
<dd>The "front end"; what happens on the user's computer</dd>
<dt class="green">Server-side</dt>
<dd>The "back end"; what happens before a page reaches the client</dd>
</dl>
</section>
<!-- Tools -->
<section>
<h3>Tools</h3>
<dl class="left-align">
<dt><span class="yellow">Browser</span> <small>— The software that displays webpages</small></dt>
<dd><strong>Chrome</strong>, Firefox, Internet Explorer, Safari, etc…</dd>
<dt><span class="yellow">Development Toolkit</span> <small>— Helpful tools for learning and troubleshooting</small></dt>
<dd><strong>Chrome Dev Tools</strong>, Firebug, Safari Web Inspector, IE Developer Tools</dd>
<dt><span class="yellow">Text Editor</span> <small>— The software you write your code with</small></dt>
<dd><strong>Sublime Text</strong>, Notepad++, Brackets, Komodo Edit, TextWrangler, etc…</dd>
</dl>
</section>
<!-- Folder Structure -->
<section>
<h3>Folder Structure</h3>
<p>All site files should be stored in the same folder!</p>
<div class="columns">
<div class="half left-align">
<p><strong>This includes:</strong></p>
<ul>
<li>HTML Files</li>
<li>CSS Files</li>
<li>Images</li>
<li>Script files</li>
<li><em>Anything else</em> that will appear on your site</li>
</ul>
<p class="green">File names should not include spaces or special characters, and are case sensitive.</p>
</div>
<div class="half">
<img src="images/folderstructure1.png" />
</div>
</div>
</section>
<!-- Project Structure -->
<section>
<h3>Text Editor Projects</h3>
<p>Most development-focused text editors make it simple to have an entire folder open. Try <code class="yellow">File > Open…</code>, then select a <em>folder</em>, not a file.</p>
<p><small>This lets you easily see all the files in your project so that you don't have to switch back and forth between the text editor and your operating system's file explorer.</small></p>
<img src="images/text-editor-project.png" alt="Example of project in Sublime">
</section>
<!-- Anatomy of a Website -->
<section class="splash">
<h2>Anatomy of a Website</h2>
</section>
<!-- Roles of HTML v CSS -->
<section>
<h3>Anatomy of a website</h3>
<div class="blue"> Your Content</div>
<div><span class="blue">+ HTML: </span>Structure</div>
<div><span class="blue">+ CSS: </span>Presentation</div>
<div class="blue">=Your Website</div>
<p>A website is a way to present your content to the world, using HTML and CSS to present that content & make it look good.</p>
</section>
<section>
<h3>Anatomy of a website</h3>
<div class="yellow"> Concrete example</div>
<ul>
<li class="fragment"><p>A paragraph of text is your <strong class="blue">content</strong></p></li>
<li class="fragment">
<p>Putting your content into an HTML tag to mark it up as a paragraph is <strong class="blue">structure</strong></p>
<pre><code class="html xml">
<p>A paragraph of text is your content</p>
</code></pre>
</li>
<li class="fragment">
<p>Making your paragraph text green and 48px is <strong class="blue">presentation</strong></p>
<p class="green" style="font-size: 48px">A paragraph of text is your content</p>
</li>
</ul>
</section>
<!-- Example of site we'll be making-->
<section>
<h3>What We’ll Build Today</h3>
<div class="columns">
<div class="left-align half">
<p>Today we’ll learn how to code a site from scratch using paragraphs, headings, links, images, and lists.</p>
<p style="margin-top: 1em;">It'll look pretty plain until we learn about CSS in our next session.</p>
</div>
<div class="half">
<img src="images/session1site.png"/>
</div>
</div>
</section>
<!-- HTML Introduction -->
<section class="splash">
<h2>Intro to HTML</h2>
</section>
<!-- What is HTML?-->
<section>
<h3>What is HTML?</h3>
<p>HTML is the code that allows us to build websites</p>
<img src="images/homepage-view.png">
</section>
<section>
<h3>What is HTML?</h3>
<p>If you 'view the source', you see this</p>
<img src="images/homepage-html.png">
</section>
<!-- History of HTML-->
<section>
<h3>History of HTML</h3>
<ul>
<li>Invented by Tim Berners-Lee</li>
<li>Created "hypertext" to share scientific papers</li>
<li><a href="http://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html" target="_blank" title="This is a later copy from 1992">First web page August 6, 1991</a></li>
<li>Standardized by the <a href="http://www.w3c.org" target="_blank">World Wide Web Consortium (W3C)</a></li>
</ul>
</section>
<section>
<h3>History of HTML</h3>
<p>HTML stands for <span class="green">H</span>yper<span class="green">T</span>ext <span class="green">M</span>arkup <span class="green">L</span>anguage</p>
<div class="left-align">
<p>Important Milestones:</p>
<ul>
<li>HTML 4 in 1997</li>
<li>XHTML in 2000</li>
<li>HTML 5 in 2008</li>
</ul>
<p>… and it's still evolving.</p>
</div>
</section>
<!-- Anatomy of an element -->
<section class="splash">
<h2>HTML Element Basics</h2>
</section>
<!-- HTML element-->
<section>
<h3>Anatomy of an HTML Element</h3>
<p><strong class="yellow">Element</strong></p>
<p>An individual component of HTML: paragraph, heading, table, list, section, link, image, <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element" target="_blank">& many more</a>.</p>
<p><strong class="yellow">Tag</strong></p>
<ul>
<li><span class="green">Opening tag</span> marks the beginning of an element</li>
<li><span class="green">Closing tag</span> marks the end of an element</li>
<li>The <em>syntax</em> involves special characters—<span class="green">></span>, <span class="green"><</span> and <span class="green">/</span>—wrapping the <span class="green">tag name</span></span>
<pre><code class="html xml"><tagname>Stuff in the middle</tagname></code></pre>
<pre><code class="html xml"><p>This is a sample paragraph.</p></code></pre>
</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;" />
</section>
<section>
<h3>Tag Types</h3>
<p><strong class="yellow">Container Element</strong></p>
<p>An element that can contain other elements or
content. Has both an opening and closing tag.</p>
<pre><code class="html xml"><p>A paragraph contains text</p></code></pre>
<p><strong class="yellow">Standalone Element</strong></p>
<p>An element that does not contain anything. Known as a <span class="green">self-closing tag</span>.</p>
<pre><code class="html xml"><br/>
<img/>
</code></pre>
</section>
<section>
<h3>Attribute/Value Pairs</h3>
<p>Opening tags can have info beyond just the tag name.</p>
<p><strong class="yellow">Attribute</strong></p>
<p>Provides additional information about the HTML element: class, id, language, source, title, <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes" title="These are just the attributes that are on ALL elements." target="_blank">& many others</a>.</p>
<p><strong class="yellow">Value</strong></p>
<p>Values are assigned to attributes, and must be surrounded by quotation marks.</p>
<pre><code class="html xml">
<tagname attribute="value">content</tagname>
<img src="my_picture.jpg" />
<a href="http://girldevelopit.com">GDI</a>
</code></pre>
</li>
</li>
</ul>
</section>
<!-- The Document -->
<section class="splash">
<h2>The Basic Document</h2>
</section>
<!-- HTML Page-->
<section>
<h3>Doctype</h3>
<p>The first thing on an HTML page is the doctype, which tells the browser which version of the markup language the page is using.</p>
<p><strong class="yellow">HTML 5</strong></p>
<pre><code class="html xml">
<!DOCTYPE html>
</code></pre>
<p><strong class="yellow">Old-style</strong></p>
<pre><code class="html xml">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
</code></pre>
</section>
<section>
<h3>HTML Tag</h3>
<p>After <code><!DOCTYPE></code>, the page content must be
contained between <code class="yellow"><html></code> tags.</p>
<pre><code class="html xml">
<!DOCTYPE html>
<html>
</html>
</code></pre>
</section>
<section>
<h3>Head & Body Tags</h3>
<div class="left-align">
<p><span class="green">Head:</span> The head contains the title of the page and meta information about the page. Meta information is not visible to the user, but has important information for search engines and the browser. </p>
<p><span class="green">Body:</span> The body contains the actual content of the page. Everything that is contained in the body is visible to the user.</p>
</div>
</section>
<!--example of head and body tags-->
<section>
<h3>Head & Body Tags</h3>
<img src="images/example-headbody.png" alt="example of head and body" />
</section>
<section>
<h3>Head & Body Tags</h3>
<pre><code class="html xml">
<!DOCTYPE html>
<html>
<head>
<title>Title of the page</title>
</head>
<body>
The page content here.
</body>
</html>
</code></pre>
</section>
<!-- Develop it -->
<section class="hide-pdf develop-it">
<h3>Develop it!</h3>
<p>Let's get our web page set up with a doctype, head, title, and body.</p>
<p>Later we'll add some content to it!</p>
</section>
<!-- Content -->
<section class="splash">
<h2>Adding Content</h2>
</section>
<!-- Nesting-->
<section>
<h3>Nesting</h3>
<p>All elements "nest" inside one another.</p>
<p><small>Nesting is what happens when you put other containing tags inside other containing tags. For example, you put the <code><p></code> tag inside of the <code><body></code> tag. The <code><p></code> is nested inside the <code><body></code>.</small></p>
<img src="images/owls.jpg"/>
<p>Whichever element OPENS first CLOSES last</p>
</section>
<!--example of nesting -->
<section>
<h3>Nesting: Example</h3>
<p>Elements are 'nested' inside the <code><body></code> tag.</p>
<pre><code class="html xml">
<body>
<p>A paragraph inside the body tag</p>
</body>
</code></pre>
<p>Paragraphs 'nested' inside list items.</p>
<pre><code class="html xml">
<ul>
<li>
<p>A paragraph inside a list item</p>
</li>
</ul>
</code></pre>
</section>
<!-- Elements -->
<!-- Paragraphs-->
<section>
<h3>Element: Paragraph</h3>
<p class="yellow large"><code class="html xml"><p></p></code></p>
<div class="columns">
<div class="half">
<pre><code class="html xml">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3</p>
</code></pre>
<pre><code class="html xml">
<p>Paragraph 1</p> <p>Paragraph 2</p> <p>Paragraph 3</p>
</code></pre>
<pre><code class="html xml">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3</p>
</code></pre>
</div>
<div class="half left-align">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3</p>
<hr/>
<p><small>* White space is only for humans!<br/>Aside from single spaces in your content, spaces, tabs, and new lines don't show up for the user.</small></p>
</div>
</div>
</section>
<section>
<h3>Example: Paragraph</h3>
<p>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: Heading</h3>
<p class="yellow large"><code class="html xml"><h1></h1></code></p>
<div class="columns">
<div class="half">
<pre><code class="html xml">
<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="half">
<h1 style="font-size: 120%">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>
</div>
<p><small>* Heading number indicates <em>hierarchy</em>, not size. Think outlines from school papers.</small></p>
</section>
<!--heading examples-->
<section>
<h3>Example: Headings</h3>
<img src="images/example-headings.png" alt="Example of headings" />
</section>
<!-- Em and Strong-->
<section>
<h3>Formatted Text</h3>
<p class="yellow large"><code class="html xml"><em></em></code>, <code class="html xml"><strong></strong></code></p>
<pre><code class="html xml"><p>
Here is a paragraph with <em>Emphasized</em> text and <strong>Important</strong> text.
</p>
</code></pre>
<p>
Here is a paragraph with <em>Emphasized</em> text and
<strong>Important</strong> text.
</p>
<p><small>* <code><em></code> and <code><strong></code> are meant to indicate meaning through code. If you want text to be italicized for appearance and not to communicate meaning, you should use CSS.</small></p>
</section>
<!--develop it!-->
<section class="hide-pdf develop-it">
<h3>Develop it!</h3>
<p class="left-align">Let's add some content to our site!</p>
<ul>
<li>Add one of each level of heading with 1-2 short paragraphs of text below each heading. </li>
<li>Create some <em>emphasized</em> and <strong>strong</strong> text within a few paragraphs.</li>
</ul>
</section>
<!-- Links-->
<section>
<h3>Element: Link</h3>
<p class="yellow large"><code class="html xml"><a></a></code></p>
<p>Links need two attributes</p>
<ul>
<li><span class="green">Href:</span> <code class="html xml">http://www.girldevelopit.com</code></li>
<li><span class="green">Title:</span> <code class="html xml">The Girl Develop It Homepage</code></li>
</ul>
<pre><code class="html xml"><a href="http://www.girldevelopit.com" title="The Girl Develop It
Homepage">Girl Develop It</a>
</code></pre>
<p><a href="http://www.girldevelopit.com" title="The Girl Develop It Homepage">Girl Develop It</a></p>
<p>The <code class="yellow"><a></code> tag surrounds text or images to turn them into links</p>
</section>
<!-- Link Attributes -->
<section>
<h3>Link Attributes</h3>
<p>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>
<pre><code class="html xml">
<a href="home.html" target="_blank">Link Text</a>
</code></pre>
<p><small>Link opens in a new window/tab with <strong>target="_blank"</strong></small></p>
<!-- Change email to fit your chapter's needs-->
<pre><code class="html xml">
<a href="mailto:[email protected]">E-mail us!</a>
</code></pre>
<p><small>Link opens mail program by inserting <strong>mailto:</strong> directly before the email address.</small></p>
</section>
<!-- relative & absolute links -->
<section>
<h3>Relative vs. Absolute Paths</h3>
<p><strong class="yellow">Relative</strong></p>
<p>Relative paths change depending upon the page the link is on.</p>
<ul>
<li><small>Links within the same directory need no path information. <code class="blue">"filename.jpg"</code></small></li>
<li><small>Subdirectories are listed without preceding slashes. <code class="blue">"images/filename.jpg"</code></small></li>
<li><small>"Root-relative" paths start with a slash. <code class="blue">"/materials/class1.zip"</code></small></li>
</ul>
<p><strong class="yellow">Absolute</strong></p>
<p>Absolute paths refer to a specific location of a file, including the domain.</p>
<ul>
<li><small>Ex: <code class="blue">"http://www.girldevelopit.com/materials/html-intro"</code></small></li>
</li>
<li><small>Most commonly used when pointing to a link on another website (i.e. "external" links).</small></li>
</ul>
</section>
<!-- Lets develop it-->
<section class="hide-pdf develop-it">
<h3>Develop It!</h3>
<p>Let's add links to our site</p>
<ul>
<li>Add a link that opens in the same window</li>
<li>Add a link to an external site that opens in a new window</li>
<li>Add a link to an e-mail address</li>
</ul>
</section>
<!-- Images-->
<section>
<h3>Element: Image</h3>
<p class="yellow large"><code class="html xml"><img/></code></p>
<div class="left-align">
<p>Images need two attributes</p>
<ul>
<li><span class="green">Source (src):</span> <code class="html xml">http://www.girldevelopit.com/assets/flourish-<br>med-587a82b8b186d39045f1fadfe47784f8.png</code></li>
<li><span class="green">Alt text (alt):</span> <br><code class="html xml">Girl Develop It flourish</code></li>
</ul>
</div>
<div class="columns">
<div class="half">
<pre><code class="html xml"><img src="http://www.girldevelopit.com/assets/flourish-med-587a82b8b186d39045f1fadfe47784f8.png" alt="Girl Develop It flourish"/></code></pre>
</div>
<div class="half">
<img src="http://www.girldevelopit.com/assets/flourish-med-587a82b8b186d39045f1fadfe47784f8.png" alt="Girl Develop It flourish"/>
</div>
</div>
<p><small>* Notice: This tag is our first example of a stand-alone or "self-closing" element.</small></p>
</section>
<!-- Line Break-->
<section>
<h3>Element: Line Break</h3>
<p class="yellow large"><code class="html xml"><br/></code></p>
<div class="columns">
<div class="half">
<pre><code class="html xml">
<p>
Imagine there's no Heaven <br/>
It's easy if you try <br/>
No hell below us <br/>
Above us only sky
</p>
</code></pre>
</div>
<div class="left-align half">
<p>
Imagine there's no Heaven <br/>
It's easy if you try <br/>
No hell below us <br/>
Above us only sky
</p>
</div>
</div>
<p><small>* Use the break tag sparingly. CSS can help us add spacing between paragraphs and other elements.</small></p>
</section>
<!-- Develop it! -->
<section class="hide-pdf develop-it">
<h3>Develop It!</h3>
<p>Let's add some images and line breaks to our page.</p>
<p>We can even turn our images into links!</p>
</section>
<!-- Lists-->
<section>
<h3>Element: Lists</h3>
<p class="yellow large"><code class="html xml"><ul></ul></code>, <code class="html xml"><ol></ol></code>, <code class="html xml"><li></li></code></p>
<div class="columns">
<div class="half">
<pre><code class="html xml">
<ul>
<li>List Item</li>
<li>Another List Item</li>
</ul>
</code></pre>
<pre><code class="html xml">
<ol>
<li>List Item</li>
<li>Another List Item</li>
</ol>
</code></pre>
</div>
<div class="half">
<p>Unordered list (bullets)
<ul>
<li>List Item</li>
<li>Another List Item</li>
</ul>
<br/>
<br/>
<p>Ordered list (sequence)
<ol>
<li>List Item</li>
<li>Another List Item</li>
</ol>
</div>
</div>
</section>
<!-- example of lists -->
<section>
<h3>Lists: Examples</h3>
<p>Lists can be used to organize any list of items.</p>
<img src="images/example-lists.png" alt="Examples of lists"/>
<p><small>You'd be surprised how often lists are used in web design.</small></p>
</section>
<!-- Develop it!-->
<section class="hide-pdf develop-it">
<h3>Develop it!</h3>
<p>Let's add one of each ordered and unordered lists to our page.</p>
<p>We can make a list of links or even a list of images!</p>
</section>
<!--Comments-->
<section>
<h3>Comments</h3>
<p>You can add comments that will not be seen by the browser, but are visible when viewing the source code.</p>
<pre><code class="html xml">
<!-- Comment goes here -->
</code></pre>
<pre><code class="html xml">
<!-- Beginning of header -->
<div id="header">Header Content </div>
<!-- End of header -->
<!--
<ol>
<li>List Item</li>
<li>Another List Item</li>
</ol>
-->
</code></pre>
<p><small>Comments can be used to organize your code into sections so you (or someone else) can easily understand your code. It can also be used to 'comment out' large chunks of code to temporarily hide it from displaying in the browser.</small></p>
</section>
<section>
<h3>Tables</h3>
<p class="yellow large"><code class="html xml"><table></table></code>, <code class="html xml"><tr></tr></code>, <br><code class="html xml"><th></th></code>, <code class="html xml"><td></td></code></p>
<p>Tables are a way to represent complex information in a grid format.</p>
<p>They have <span class="green">t</span>able <span class="green">r</span>ows (<code><tr></code>) and two types of cells: <span class="green">t</span>able <span class="green">h</span>eadings (<code><th></code>) and <span class="green">t</span>able <span class="green">d</span>ata (<code><td></code>).</p>
<div class="columns">
<div class="half">
<pre><code class="html xml">
<table>
<tr>
<th>Head</th>
<th>Head</th>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
</table>
</code></pre>
</div>
<div class="left-align half">
<table style="margin-top: 20px; width: 100%; border: 1px solid">
<tr>
<th style="border: 1px solid">Head</th>
<th style="border: 1px solid">Head</th>
</tr>
<tr>
<td style="border: 1px solid">Data</td>
<td style="border: 1px solid">Data</td>
</tr>
</table>
</div>
</div>
</section>
<!-- Table Examples -->
<section>
<h3>Tables: Examples</h3>
<p>Tables can be styled with CSS to add zebra striping or to highlight important rows/columns.</p>
<img src="images/example-tables.png" alt="Example of tables" />
</section>
<!-- Character codes-->
<section>
<h3>Special Characters</h3>
<p>There are character codes for many different characters in many different languages. </p>
<div class="columns">
<div class="half">
<table class="character-table">
<thead>
<tr>
<th> </th>
<th>Name</th>
<th>Code</th>
</tr>
</thead>
<tbody>
<tr>
<td>•</td>
<td>Bullet</td>
<td>&bull;</td>
</tr>
<tr>
<td>©</td>
<td>Copyright</td>
<td>&copy;</td>
</tr>
<tr>
<td>&</td>
<td>Ampersand</td>
<td>&amp;</td>
</tr>
<tr>
<td>Ç</td>
<td>C w/ cedilla</td>
<td>&Ccedil;</td>
</tr>
</tbody>
</table>
<p><small>A full list is available at <a href="http://www.character-code.com/" target="_blank">character-code.com</a></small></p>
</div>
<div class="half">
<img src="images/example-characters.png" alt="Example of Characters"/>
</div>
</div>
</section>
<!-- Develop it!-->
<section class="hide-pdf develop-it">
<h3>Develop it!</h3>
<p>Add a table of data to your page.</p>
<p>Add a copyright statement at the bottom.</p>
</section>
<!-- The End -->
<section class="splash">
<h2>Questions?</h2>
<p class="question-mark">?</p>
</section>
</div>
<footer>
<div class="copyright">
HTML/CSS ~ Girl Develop It Burlington ~
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" /></a>
</div>
</footer>
</div>
<script>
//Hack in background color for all .splash slides
//Must come prior to Reveal init
//but doing it manually is too much work
[].forEach.call(document.querySelectorAll('.splash'), function(el) {
el.dataset.background = "#f05b62";
});
[].forEach.call(document.querySelectorAll('.develop-it'), function(el) {
el.dataset.background = "#01a9b4";
});
</script>
<script src="reveal/lib/js/head.min.js"></script>
<script src="reveal/js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'reveal/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>