forked from marthar/webfall-2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3.html
executable file
·773 lines (665 loc) · 25.1 KB
/
3.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Rocks!</title>
<meta name="viewport" content="width=1024">
<link rel="stylesheet" href="dist/coderdeck-core.min.css" type="text/css">
<link rel="stylesheet" id='style-theme-link' href="src/css/coderdeck.css" type="text/css" >
<script src='dist/jquery.min.js'></script>
<script src="dist/modernizr.js"></script>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
</head>
<body class="deck-container">
<script type='text/coderdeck' id='coderdeck-default'>
<html>
<head>
<script src='src/jquery.min.js'>SCRIPTEND
</head>
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-plain'>
<html>
<title>test</title>
<link rel="stylesheet" href="reset.css">
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-css-playground'>
<html>
<title>test</title>
CODE
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<p>Pargraph of text <p></p>
<div class='stuff'><div> with class "stuff"</div>
<div id='my-div'><div> with id "my-div"</div>
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-style-example'>
<html>
<title>test</title>
<style>
CODE
</style>
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<h3>Pargraph of text <p> here</p>
<div class='stuff'>I'm a div <div> with class "stuff"</div>
<div id='my-div'>I'm a <div> with id "my-div"</div>
</body>
</html>
</script>
<!-- Create any number of elements with class slide within the container -->
<article class='slide slide-subhead'>
<h1>HTML</h1>
<h2>Week 3</h2>
<p><a href='http://acacheung.github.com/webspring-2016/3.html'>http://acacheung.github.com/webspring-2016/3.html</a></p>
</article>
<article class='slide slide-list'>
<h1>Order of Business</h1>
<ol>
<li class="slide">
<h3>Review Homework</h3>
</li>
<li class="slide">
<h3>Lists</h3>
</li>
<li class="slide">
<h3>Anchors</h3>
</li>
<li class="slide">
<h3>Links</h3>
</li>
<li class="slide">
<h3>Images</h3>
</li>
<li class="slide">
<h3>Characters</h3>
</li>
</ol>
</article>
<article class='slide slide-list'>
<h2>Homework Review</h2>
<ul>
<li>
<h3>Resolve GitHub issues</h3>
</li>
<li>
<h3>Any questions?</h3>
</li>
<li>
<h3>Review GitHub flow</h3>
</li>
<li>
<h3>Review <a href='http://alistapart.com/article/dao'>A Dao of Web Design</a> and <a href='http://catchsparrow.github.io/blog-post/index.html'>some differences between print and web design<a></h3>
</li>
</ul>
</article>
<article class='slide slide-subhead'>
<a href="homework.html"><h1>Homework</h1></a>
</article>
<article class='slide slide-list'>
<a href="http://alistapart.com/article/dao"><h1>A Dao of Web Design</h1></a>
<ol>
<li class="slide">
<h3>Pixel perfection</h3>
</li>
<li class="slide">
<h3>Many design best practices still apply: typography, negative space, contrast, etc.</h3>
</li>
<li class="slide">
<h3>Adaptability & Accessibility</h3>
</li>
</ol>
</article>
<article class='slide slide-accent'>
<h1>Let's Talk more HTML</h1>
</article>
<article class='slide slide-subhead'>
<h1>...but first a little review</h1>
<h3>Let's let Jessica & Russ get us started!</h3>
<h3><a href="http://www.dontfeartheinternet.com/04-from-scratch/">Don't Fear the Internet</a></h3>
</article>
<article class='slide slide-accent'>
<h1>Lists</h1>
</article>
<article class='slide slide-list'>
<h1>Types of Lists</h1>
<ol>
<li class="slide">
<h3>Ordered Lists</h3>
</li>
<li class="slide">
<h3>Unordered Lists</h3>
</li>
<li class="slide">
<h3>Definition Lists</h3>
</li>
</ol>
</article>
<article class='slide slide-list'>
<h1>Ordered Lists</h1>
<h3>Also known as numbered lists, each item in the list is numbered. </h3>
<ol>
<li>start with the <em>< ol ></em> tag </li>
<li>end with the <em>< /ol ></em> tag </li>
<li>each item is wrapped in <em>< li ></em> and <em>< /li ></em> tags </li>
</ol></br>
</article>
<article class='slide slide-list'>
<h2>Example Ordered List</h2>
<pre>
<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ol>
</pre>
</article>
<article class='slide slide-list'>
<h1>Unordered Lists</h1>
<h3>Also known as bulleted lists, each item in the list has a bullet. </h3>
<ol>
<li>start with the <em>< ul ></em> tag </li>
<li>end with the <em>< /ul ></em> tag </li>
<li>each item is wrapped in <em>< li ></em> and <em>< /li ></em> tags </li>
</ol></br>
</article>
<article class='slide slide-list'>
<h2>Example Unordered List</h2>
<pre>
<ul>
<li>bullet item 1</li>
<li>bullet item 2</li>
<li>bullet item 3</li>
</ul>
</pre>
</article>
<article class='slide slide-list'>
<h1>Nested Lists</h1>
<h3>Lists inside of lists! <br/>
You can start a second list inside your first list </h3>
<ol>
<li>start in your <em>< li ></em> tag </li>
<li>start a new <em>< ul ></em> before closing the <em>< li ></em> </li>
<li>add your nested list remembering to close the initial <em>< /ul ></em> tag at the VERY end </li>
</ol></br>
</article>
<article class='slide slide-list'>
<h2>Example Nested List</h2>
<pre>
<ul>
<li>bullet item 1</li>
<li>bullet item 2
<ul>
<li>nested item 1</li>
<li>nested item 2</li>
</ul>
</li>
<li>bullet item 3</li>
</ul>
</pre>
</article>
<article class='slide slide-list'>
<h2>Let's make some lists</h2>
<p>Add a list inside the current list of where on the interwebs to post your images <br/> Add some bullets after the list of fun Meme Ideas</p>
<textarea class='coder-editor coder-editor-split coder-editor-instant'>
<h1>Step to starting a Meme</h1>
<ol>
<li>Find cute animal picture</li>
<li>Add a snarky message</li>
<li>Post to interwebs</li>
</ol>
</textarea>
</article>
<article class='slide slide-accent'>
<h1>Links</h1>
</article>
<article class='slide slide-list'>
<h1>Links are why the Web is so awesome!</h1>
<h3>they are what makes surfing possible (no wetsuit required) </h3>
<ol>
<li>link from one website to another </li>
<li>link from one page in your site to another</li>
<li>link from a specific part of a page to another</li>
<li>open a new window with a link</li>
<li>send an email with a link</li>
</ol></br>
</article>
<article class='slide slide-list'>
<h1>Link Tags</h1>
<p class="slide">Always an open and close<br/></p>
<div class="slide example"><em> <a></em> <em> </a></em></div>
<p class="slide">This is the base of how we link to anything - what we add between those two tags is what we will link to. Remember you close your links!
</p>
</article>
<article class='slide slide-list'>
<h1>Add HREF</h1>
<h3>We tell the browser where to link by adding</h3>
<div class="slide example"><em>href = "..."</em></div>
<h3>Example</h3>
<h3><a href = " <em>http://www.website.com</em> "><em>This is your Link </em></a></h3>
</article>
<article class='slide slide-list'>
<h2>Link to Other Sites</h2>
<h3>We need to use an absolute url (don't forget the http or https-copy and paste from your browser to be sure)</h3><br/>
<h3><a href = " http://www.website.com "><em>This is your Link </em><a></h3>
</article>
<article class='slide slide-list'>
<h2>Open a Link in a New Window</h2>
<h3>we add an attribute inside the a tag of <em>target="_blank"</em></h3><br/>
<h3>Generally we don't want to open links in new windows (let the user decide if they want to do this)</h3><br/>
<h3><a href = "about.com" target = "_blank"><em>About Page</em><a></h3>
</article>
<article class='slide slide-list'>
<h2>Link to a page in your site</h2>
<h3>We need to tell the browser what .html document to link to/open</h3><br/>
<h3>If all the pages (.html files) are in the same folder you can just use the name of the file</h3><br/>
<h3><a href ="about.html"><em>About Page</em></a></h3>
</article>
<article class='slide slide-list'>
<h2>Example Folder Structure</h2>
<img src="images/folder.png" class='top-image'/>
</article>
<article class='slide slide-list'>
<h2>Directory Relationships</h2>
<h3>If it's in the same folder<br/>
<em>= "contact.html"</em></h3><br/>
<h3>If it's inside another folder inside your folder<br/>
<em>= "images/logo.png"</em></h3><br/>
<h3>If it's outside the folder you are in (if we were inside the images folder and wanted to link to index.html)<br/>
<em>= "../index.html"</em></h3><br/>
</article>
<article class='slide slide-accent'>
<h1>Anchors</h1>
<h3>how we link to specific part of a page</h3>
</article>
<article class='slide slide-list'>
<h2>How anchors work</h2>
<h3>They use the <em>id</em> attribute- great for 1-page scrolling sites</h3>
<ol>
<li>decide where on the page you want to link</li>
<li>add the <em>id=".."</em> attribute inside the opening tag</li>
<li>the attribute name should start with a letter or _ and be relevant to the text</li>
<li>can't reuse attribute names (ids only get used) </li>
<li>in the nav link to the anchor text using <em>href="#id-name"</em></li>
</ol>
</article>
<article class='slide slide-list'>
<h2>Anchor Your Navs</h2>
<textarea class='coder-editor coder-editor-full' data-coder-template='coderdeck-plain'>
<header>
<h1>MY PAGE</h1>
<nav>
<ul>
<li><a>Home</a></li>
<li><a>About</a></li>
<li><a>Portfolio</a></li>
<li><a>Contact</a></li>
</ul>
</nav>
</header>
<section>
<h1>About</h1>
<p> Brisket chuck leberkas short ribs tenderloin tongue. <br/>Filet mignon sirloin jerky chicken strip steak t-bone. Ribeye short ribs fatback pancetta ham boudin, pork biltong tenderloin leberkas ball <br/>tip pork chop bresaola. Spare ribs kielbasa pork loin hamburger pork chop rump beef. Chuck spare ribs pork chop shank ribeye, leberkas turkey <br/>pig. Tri-tip tongue turducken, pig jowl brisket tail tenderloin flank rump bresaola pork chop short loin shoulder.</p>
<h1>Portfolio</h1>
<p>T-bone strip steak beef ribs, tenderloin drumstick pancetta biltong <br/>sirloin jowl speck kielbasa ball tip. Filet mignon leberkas jerky, cow shankle spare ribs fatback venison tri-tip short ribs kielbasa brisket. <br/>Swine pork loin beef kielbasa, prosciutto boudin beef ribs hamburger pork chop short ribs meatloaf frankfurter bresaola. Chuck kielbasa tail boudin.</p>
<p>Ball tip swine salami, strip steak boudin chicken fatback. Kielbasa bresaola <br/>ribeye swine speck pork belly. T-bone chuck turducken, tail pig ball tip kielbasa. Ribeye kielbasa tenderloin spare ribs, turducken beef ribs<br/> prosciutto drumstick brisket pastrami strip steak. Jerky salami biltong chicken, ground round pig pork chop meatball pork corned beef pastrami turducken shoulder.</p>
<h1>Contact</h1>
<p>Ball tip capicola chuck kielbasa prosciutto chicken. <br/>Meatloaf meatball corned beef pork belly, andouille frankfurter salami ground round biltong rump spare ribs. Capicola tail boudin, turducken <br/>pork belly ribeye bresaola bacon t-bone ball tip. Ribeye frankfurter spare ribs, ground round pork loin tail rump salami speck sirloin pastrami shank.</p>
<p>Ham hamburger capicola short loin pork loin kielbasa. Meatball biltong tri-tip pork belly speck pork loin, shankle bacon. Bacon frankfurter prosciutto, ribeye tri-tip jowl beef pork chop kielbasa bresaola t-bone pig shank short loin. Jerky brisket pork chop jowl.</p>
</section>
<style>
body {width:400px;}
h1 { padding-top:20px; font-size:2em;}
p { line-height:1.5em; }
nav li { display:inline-block; padding-right:20px; padding-bottom:75px;}
</style>
</textarea>
<script type='coder-solution'>
<header>
<h1>MY PAGE</h1>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<section>
<h1 id="home">Bacon Ipsum</h1>
<p> Brisket chuck leberkas short ribs tenderloin tongue. Filet mignon sirloin jerky chicken strip steak t-bone. Ribeye short ribs fatback pancetta ham boudin, pork biltong tenderloin leberkas ball tip pork chop bresaola. Spare ribs kielbasa pork loin hamburger pork chop rump beef. Chuck spare ribs pork chop shank ribeye, leberkas turkey pig. Tri-tip tongue turducken, pig jowl brisket tail tenderloin flank rump bresaola pork chop short loin shoulder.</p>
<h1 id="about">About</h1>
<p>T-bone strip steak beef ribs, tenderloin drumstick pancetta biltong sirloin jowl speck kielbasa ball tip. Filet mignon leberkas jerky, cow shankle spare ribs fatback venison tri-tip short ribs kielbasa brisket. Swine pork loin beef kielbasa, prosciutto boudin beef ribs hamburger pork chop short ribs meatloaf frankfurter bresaola. Chuck kielbasa tail boudin.</p>
<h1 id="portfolio">Portfolio</h1>
<p>Ball tip swine salami, strip steak boudin chicken fatback. Kielbasa bresaola ribeye swine speck pork belly. T-bone chuck turducken, tail pig ball tip kielbasa. Ribeye kielbasa tenderloin spare ribs, turducken beef ribs prosciutto drumstick brisket pastrami strip steak. Jerky salami biltong chicken, ground round pig pork chop meatball pork corned beef pastrami turducken shoulder.</p>
<p>Ball tip capicola chuck kielbasa prosciutto chicken. Meatloaf meatball corned beef pork belly, andouille frankfurter salami ground round biltong rump spare ribs. Capicola tail boudin, turducken pork belly ribeye bresaola bacon t-bone ball tip. Ribeye frankfurter spare ribs, ground round pork loin tail rump salami speck sirloin pastrami shank.</p>
<h1 id="contact">Contact</h1>
<p>Ham hamburger capicola short loin pork loin kielbasa. Meatball biltong tri-tip pork belly speck pork loin, shankle bacon. Bacon frankfurter prosciutto, ribeye tri-tip jowl beef pork chop kielbasa bresaola t-bone pig shank short loin. Jerky brisket pork chop jowl.</p>
</section>
<style>
body {width:400px;}
h1 { padding-top:20px; font-size:2em;}
p { line-height:1.5em; }
nav li { display:inline-block; padding-right:20px; padding-bottom:75px;}
</style>
</script>
</article>
<article class='slide slide-accent'>
<h1>Images</h1>
</article>
<article class='slide slide-accent'>
<h1>Getting images into your site</h1>
</article>
<article class='slide slide-list'>
<h1>The Image Tag</h1>
<h3>images are defined with the <em>< img ></em></span> tag.</h3></br>
<div class="example"><<em>img</em> <em>src</em> = " <em>file location</em> "/></div>
<h3>images have no closing tag.</br> The <em>/</em> is located at the end of the tag</h3>
</article>
<article class='slide slide-list'>
<h1>The Alt Attribute</h1>
<h3>The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. <a href="http://csswizardry.com/2010/01/a-suitable-alternativeon-proper-use-of-alt-attributes/">For more info</a></h3>
<div class="example"><img src="lama.png" <b>alt="big llama"></b></div><br/>
<p class="callout">You decide what the description text is.</br> The alt attribute is required for your code to validate.
</p>
</article>
<article class='slide slide-list'>
<h2>Let's Link Some Images!!</h2>
<p>link to all these images, cat.jpg (in a folder called images), llama.jpg (in the same folder as the html), otter.jpg (in the images folder in a folder called small)</p>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-save='F012-image-find'>
</textarea>
</article>
<article class='slide slide-subhead'>
<h1>Formatting Images on the Web</h1>
</article>
<article class='slide slide-list'>
<h2>Know your Formats</h2>
<ul>
<li class="slide">
<h3>GIF</h3>
</li>
<li class="slide">
<h3>JPG</h3>
</li>
<li class="slide">
<h3>PNG</h3>
</li>
<li class="slide">
<h3>SVG</h3>
</li>
<li class="slide">
<h3>ICO </h3>
</li>
</ul>
</article>
<article class="slide slide-statement">
<h1><s>.tiff</s></h1>
</article>
<article class="slide slide-statement">
<h1><s>.psd</s></h1>
</article>
<article class="slide slide-statement">
<h1><s>.eps</s></h1>
</article>
<article class='slide slide-list'>
<h2>gif</h2>
<ul>
<li class="slide">
<h3>lossless / non-lossy (all the data that was originally in the file remains after the file is uncompressed)</h3>
</li>
<li class="slide">
<h3><a href="http://www.diyphotography.net/8-bit-vs-16-bit-color-depth-use-matters/">8bit</a></h3>
</li>
<li class="slide">
<h3>1bit transparency</h3>
</li>
<li class="slide">
<h3>Can be <a href="http://dailydoseofcute.net/wp-content/uploads/bulldog-in-a-swing.gif">animated</a></h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>jpg</h2>
<ul>
<li class="slide">
<h3>lossy (decide how much loss to introduce and make a trade-off between file size and image quality)</h3>
</li>
<li class="slide">
<h3>FFT-compression</h3>
</li>
<li class="slide">
<h3>24 bit</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>png</h2>
<ul>
<li class="slide">
<h3>upgrading gif</h3>
</li>
<li class="slide">
<h3>24 & 8bit</h3>
</li>
<li class="slide">
<h3>Supports transparency</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>svg</h2>
<ul>
<li class="slide">
<h3>scalable vector graphics</h3>
</li>
<li class="slide">
<h3>good support only recently</h3>
</li>
<li class="slide">
<h3>Can be animated with code!</a></h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>ico</h2>
<ul>
<li class="slide">
<h3>favicon (the only time you would use it)</h3>
</li>
</ul>
</article>
<article class='slide slide-subhead'>
<h2>Which Format?</h2>
</article>
<article class="slide slide-image">
<img src='https://cdn.css-tricks.com/wp-content/uploads/2015/05/kiwi.svg'/>
</article>
<article class="slide slide-image">
<img src='images/fatcat.jpg'/>
</article>
<article class="slide slide-image">
<img src='https://d13yacurqjgara.cloudfront.net/users/3460/screenshots/1276794/san-francisco-office.png'/>
</article>
<article class='slide slide-accent'>
<h1>Special Characters</h1>
</article>
<article class='slide slide-subhead'>
<h1>Special Characters</h1>
<h3>Have you ever tried to type ampersands, copyright symbols, quotation marks, greater-than, or less-than signs into your code as text?</h3>
<h3><div class="example"><em> & © “ ” ♥ < > </em></div></h3>
<h3>There are some characters that are used in HTML that you can't just type in, the browser will think it's code and not text to be displayed. <a href="https://www.w3.org/International/questions/qa-escapes#use">When to use escapes.</a></h3>
</article>
<article class='slide slide-list'>
<h2>Make an h1 that says <3</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-save='F012-characters'>
</textarea>
</article>
<article class='slide slide-accent'>
<h1>Let's Talk CSS</h1>
</article>
<article class='slide slide-subhead'>
<h1>More from Jessica & Russ</h1>
<h3><a href="http://www.dontfeartheinternet.com/05-from-scratch/">Don't Fear the Internet</a></h3>
</article>
<article class="slide slide-list">
<h1>Cascading Style Sheets</h1>
<ul>
<li class="slide">
<h3>Used for “presentation” of your HTML</h3>
</li>
<li class="slide">
<h3>Controls the styles of your page</h3>
</li>
<li class="slide">
<h3>Also Controls the layout of your page (where stuff is positioned)</h3>
</li>
<li class="slide">
<h3>Can have different styles different media formats (eg. print, screen, mobile)</h3>
</li>
</ul>
</article>
<article class="slide slide-image">
<h1>What is a style?</h1>
<img src='images/css.png'/>
</article>
<article class='slide slide-list'>
<h1>We Pick a Selector</h1>
<p class="slide">(the part of our HTML we want to style, for example, h1, h2, p or li)<br/></p>
<div class="slide example"><em> h1</em> <span class='slide'> { color:red; }</span></div>
<div class="slide example"><em> h2</em> <span class='slide'> { font-size:20px; }</span></div>
<div class="slide example"><em> a</em> <span class='slide'> { text-decoration:none; }</span></div>
<p class="slide">You can also pick id or class names, as well as multiple tags- but for now let's keep it simple</em>
</p>
</article>
<article class='slide slide-list'>
<h1>We Make a Declaration</h1>
<p class="slide">(using CSS properties and values we add formatting)<br/></p>
<div class="slide example">h1<span class='slide'> { <em> color:red; </em>}</span></div>
<div class="slide example"> h2<span class='slide'> { <em> font-size:20px;</em> }</span></div>
<div class="slide example"> a <span class='slide'> { <em> text-decoration:none; </em> }</span></div>
<p class="slide">Remember google is your friend here's a quick <a href="http://www.lesliefranke.com/files/reference/csscheatsheet.html">cheat sheet</a>
</p>
</article>
<article class='slide slide-list'>
<h2>Pay attention to your class names!</h2>
<ul>
<li class="slide">
<h3>You can't use spaces.</h3>
</li>
<li class="slide">
<h3>Javascript uses camelCase</h3>
</li>
<li class="slide">
<h3>I'd recommend dashes - css uses dashes (<em>background-color, font-family</em>)... for now - later introduce underscores because <a href="http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/">BEM</a></h3>
</li>
<li class="slide">
<h3>Be consistent! - easier to read and remember what you wrote.</h3>
</li>
</ul>
</article>
<article class="slide slide-list">
<h2>Available selectors</h2>
<ul>
<li class='slide'>
<h3>name of element (e.g. <em>p, div, h1</em>)</h3>
</li>
<li class='slide'>
<h3>
class name prefixed with a period (.)<br/>
<em>HTML </em><div <span class="callout">class=‘my-class-name</span>’><span class="light"> This is my class name </span></div><br/>
<em>CSS </em><span class="callout">.my-class-name</span> {<span class="light"> font-size: 25px; </span>}
</h3>
</li>
<li class='slide'>
<h3>element id prefixed with a hash / pound sign (#)<br/>
<em>HTML </em><div <span class="callout">id=‘my-id</span>’><span class="light"> This is my id</span></div><br/>
<em>CSS </em><span class="callout">#my-id</span> { <span class="light"> color: red;</span> }
</h3>
</li>
</ul>
</article>
<article class="slide slide-list">
<h1>Properties</h1>
<ul>
<li class="slide">
<h3>There are lots of them</h3>
</li>
<li class="slide">
<h3>Two Primary types: Layout, Style<br/>
(Padding is layout, color is style)</h3>
</li>
<li class="slide">
<h3>Style generally inherit, Layout don’t</h3>
</li>
<li class="slide">
<h3>Sometimes can be combined into one: e.g.<br/>
<em>font = font-family, font-style, font-variant, ...</em><br/>
<em>background = background-color, background-image, background-repeat, background-attachment, background-position ...</em><br/>
<em>padding = padding-top, padding-right, padding-bottom, padding-left ...</em></h3>
</li>
<li class="slide">
<h3>Layout box properties go clockwise from midnight: top, right, bottom, left</h3>
</li>
</ul>
</article>
<article class="slide slide-list">
<h1>Values</h1>
<ul>
<li class="slide">
<h3>colors: #fff, #ffffff, rgb(255,255,255), gray, black, red</h3>
</li>
<li class="slide">
<h3>numbers: 0, 25px, 1.1em, 100%<br/>
<em>em's are 'M' height - and these inherit (multiply)</em>
</h3>
</li>
<li class="slide">
<h3>“inherit” is a special property to force inheritence</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Let's Give this a Try! </h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-coder-template="coderdeck-css-playground" data-language='html'>
<style>
</style>
</textarea>
</article>
<article class='slide slide-homework'id="homework-3">
<h2>Homework</h2>
<ul>
<li>
<h3><a href='http://coding.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/'>Mastering CSS Coding: Getting Started</a>
</h3>
</li>
<li>
<h3>Work on CSS for Dobot shop</h3>
</li>
<li>
<h3>Gather design ideas for blog post</h3>
</li>
</ul>
</ul>
</article>
<script src='dist/coderdeck.min.js'></script>
<!-- Prettify -->
<script src="src/prettify.js"></script>
<script>
$(function() {
$.deck('.slide');
});
</script>
</body>
</html>