-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2.html
executable file
·679 lines (592 loc) · 19.7 KB
/
2.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Llamas are Awesome</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-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 2</h2>
<p><a href='http://marthar.github.com/webfall-2015/2.html'>http://marthar.github.com/webfall-2015/2.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>Discuss Readings</h3>
</li>
<li class="slide">
<h3>HTML Basics</h3>
</li>
<li class="slide">
<h3>HTML5 Semantic Structure</h3>
</li>
<li class="slide">
<h3>Outlining Your Page</h3>
</li>
<li class="slide">
<h3>Exercises</h3>
</li>
</ol>
</article>
<article class='slide slide-subhead'>
<h1>Homework</h1>
<h2><a href="homework-monday.html">Monday </a>|<a href="homework-friday.html"> Friday</a></h2>
</article>
<article class='slide slide-list'>
<h2>Readings</h2>
<ul>
<li>
<h3><a href='http://www.alistapart.com/articles/dao/'>A Dao of Web Design by John Allsopp</a></h3>
</li>
<li>
<h3><a href='http://www.fastcodesign.com/3032719/ui-ux-who-does-what-a-designers-guide-to-the-tech-industry'>UI, UX: Who Does What? A Designer's Guide to the Tech Industry</a>
</h3>
</li>
</ul>
</article>
<article class='slide slide-accent'>
<h1>Let's Talk HTML</h1>
</article>
<article class='slide slide-subhead'>
<h1>HTML</h1>
<h2>Hypertext Markup Language</h2>
<p>HTML is a markup language, which means you're annotating (marking up) plain text to give it structure and meaning, similar to the way you would underline or make notes in a book.</p>
</article>
<article class='slide slide-list'>
<h1>HTML "1.0"</h1>
<ul>
<li class="slide">
<h3>Original draft from 1992</h3>
</li>
<li class="slide">
<h3>20 Tags, including: section, h1-h6, p, a, menu, ul, ol, dir, li, dl dt, dd</h3>
</li>
<li class="slide">
<h3>How stuff was displayed was left up to the browser</h3>
</li>
<li class="slide">
<h3>Was more concerned with “Semantic” markup of documents</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h1>The Browser War, Round 1</h1>
<ul>
<li class="slide">
<h3>Mozilla vs. Microsoft.
</h3>
</li>
<li class="slide">
<h3>Started adding features fast and furious</h3>
</li>
<li class="slide">
<h3>Lots of incompatabilities</h3>
</li>
<li class="slide">
<h3><img src="images/browsers.png" alt="browser logos" class='top-image'/></h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h1>XHTML</h1>
<ul>
<li class="slide">
<h3>Reaction to “looseness” of HTML</h3>
</li>
<li class="slide">
<h3>A XHTML page is a valid XML document</h3>
</li>
<li class="slide">
<h3>In XHTML 4.0 Strict, document won’t render if there’s a mistake in the HTML</h3>
</li>
<li class="slide">
<h3>Boring...Coming down from the W3C</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h1>HTML5 and The New Hope</h1>
<ul>
<li class="slide">
<h3>Previous versions of HTML came from the IETF (Now Defunct) and W3C</h3>
</li>
<li class="slide">
<h3>2004: There was a rebellion over XHTML (non-backwards compatible version of HTML)</h3>
</li>
<li class="slide">
<h3><a href="http://www.whatwg.org/">WHATWG</a> Formed (Apple, Mozilla, Opera)</h3>
</li>
<li class="slide">
<h3>2007: Adopts HTML5, drops XHTML</h3>
</li>
</ul>
</article>
<article class='slide slide-image'>
<img src="images/html5-shield-1.png" class='top-image'/>
<h1>HTML5
</h1>
<h3>Last numbered version of HTML<br/>
Browser makers driving features<br/>
Feature coming fast and furious</h3>
<h3 class="slide"><span class="callout">We’re in Browser Wars, Round #2</span></h3>
</article>
<article class='slide slide-list'>
<h1>New in "HTML5"</h1>
<ol>
<li class="slide">
<h3>New Semantic Tags</h3>
</li>
<li class="slide">
<h3>Hardware Accelerated 2D + 3D Graphics</h3>
</li>
<li class="slide">
<h3>CSS3 - visual goodies, transitions</h3>
</li>
<li class="slide">
<h3>Audio, Video</h3>
</li>
<li class="slide">
<h3>WebSockets</h3>
</li>
<li class="slide">
<h3>Local Storage</h3>
</li>
<li class="slide">
<h3>Offline Storage</h3>
</li>
<li class="slide">
<h3>SVG</h3>
</li>
<li class="slide">
<h3>New Events (touch, orientation, accel)</h3>
</li>
<li class="slide">
<h3>Geolocation (via GPS)</h3>
</li>
</ol>
</article>
<article class='slide slide-accent'>
<h1>HTML 101</h1>
</article>
<article class='slide slide-subhead'>
<h1>first a little intro</h1>
</article>
<article class='slide slide-subhead'>
<h1>Let's Watch a Video</h1>
<h3><a href="http://www.dontfeartheinternet.com/html/html">Don't Fear the Internet</a></h3>
<p>more from our favorite people Jessica Hische & Russ Maschmeyer</p>
</article>
<article class='slide slide-subhead'>
<h1>Let's Review</h1>
</article>
<article class='slide slide-list'>
<h1>Tags</h1>
<div class="slide">HTML tags are element names surrounded by angle brackets like: <br/>
<div class="slide example"><em><</em> html <em>></em></div>
</div>
</article>
<article class='slide slide-list'>
<h1>Tags</h1>
<p class="slide">HTML tags usually come in pairs<br/></p>
<div class="slide example"><em> <head></em> <em class='slide'> </head></em></div>
<p class="slide"> In the industry we refer to these as <em>start tag and end tag</em> or <em>open tag and close tag</em>
</p>
</article>
<article class='slide slide-list'>
<h1>Tags</h1>
<p> In HTML you can write just the opening tag and it will often work like: <br/>
<div class="slide example"><em><h1></em> Headline<br/> <em><p>zz</em> Body text.</div>
</p>
<p class="callout">Don’t do this. Always use open and close or single tags.</p>
</article>
<article class='slide slide-list'>
<h1>Tags</h1>
<p class='slide'>Tell the browser about your content</p>
<ul>
<li class='slide'>
<h3><em><html></em> describes the web page</h3>
</li>
<li class='slide'>
<h3><em><body></em> visible page content</h3>
</li>
<li class='slide'>
<h3><em><div></em> defines a division or a section</h3>
</li>
<li class='slide'>
<h3><em><span></em> group inline-elements together</h3>
</li>
<li class='slide'>
<h3><em><h1></em> heading</h3>
</li>
<li class='slide'>
<h3><em><p></em> paragraph</h3>
</li>
<li class='slide'>
<h3><em><em></em> adds emphasis</h3>
</li>
<li class='slide'>
<h3><em><header></em> is header content</h3>
</li>
<li class='slide'>
<h3><em><nav></em> is navigational content</h3>
</li>
</ul><br/>
<p class='slide'>Some tags are generic - <em><div></em>, <em><span></em>
Some have “semantic” meaning <em><h1></em>, <em><nav></em><p>
</article>
<article class='slide slide-accent'>
<h1>Attributes</h1>
</article>
<article class='slide slide-list'>
<h1>Attributes</h1>
<h3 class='slide'>Tell the browser about your content</h3>
<ul>
<li class='slide'><h3> HTML tags/elements can have attributes
</h3>
</li>
<li class='slide'><h3> Attributes are always specified in the start tag
</h3>
</li>
<li class='slide'><h3> Attributes come in name/value pairs like: name="value"</h3>
</li>
<li class='slide'>
<h3><<em>element </em><span class="callout">name = "</span><span class="light">value</span><span class="callout">"<span>>
</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h1>Attributes</h1>
<span class="example"><<em>element </em> <em>name</em> = " <em>value</em> "></span>
<p class="slide">Example:</p>
<ul>
<li class="slide"><h3>links are defined by using an <em><a></em> tag</h3>
</li>
<li class="slide"><h3>you tell the browser what address to link to by adding a <em>href</em> tag</h3>
</li>
<li class="slide"><h3><<em>a </em><span class="callout">href = "</span><span class="light">http://www.massart.edu</span><span class="callout">"<span>>
</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h1>Attributes</h1>
<p>Most Common Types</p>
<ul>
<li class="slide"><h3><span class="callout">CLASS</span> - this defines one or more CSS class names to assign to the tag.</h3>
</li>
<li class="slide"><h3><span class="callout">ID</span> - this defines a unique identifier that uniquely refers to this one tag.</h3>
</li>
<li class="slide"><h3><span class="callout">STYLE</span> - this defines the CSS styles to use for this particular element.<h3>
</li>
<li class="slide"><h3>others: href, src, data-*</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h1>Attributes</h1>
<p>More Examples</p>
<ul>
<li class="slide"><h3><<em>nav </em><span class="callout">id = "</span><span class="light">top-nav</span><span class="callout">"<span>>
</h3>
</li>
<li class="slide"><h3><<em>img </em><span class="callout">src = "</span><span class="light">logo.png</span><span class="callout">"<span>>
</h3>
</li>
<li class="slide"><h3><<em>p </em><span class="callout">class = "</span><span class="light">highlight</span><span class="callout">"<span>>
</h3>
</li>
<li class="slide"><h3><<em>a </em><span class="callout">href = "</span><span class="light">http://www.massart.edu</span><span class="callout">"<span>>
</h3>
</li>
</ul>
</article>
<article class='slide slide-accent'>
<h1>HTML5 Semantic Structure</h1>
</article>
<article class='slide slide-list'>
<h1>HTML5 Semantic Tags</h1>
<h3>Most Common Tags</h3>
<ul>
<li class='slide'>
<h3 ><head> = Meta Info</h3>
</li>
<li class='slide'>
<h3 ><body> = Site Content</h3>
</li>
<li class='slide'>
<h3 ><header> = Header (Head area of the site)</h3>
</li>
<li class='slide'><h3><nav> = Navigation (Menu/Navigation Area)
</h3>
</li>
<li class='slide'><h3><section> = Section
</h3>
</li>
<li class='slide'><h3><article> = Article
</h3>
<li class='slide'><h3><footer> = Footer Area
</h3>
</li>
<li class='slide'><h3><aside> = An area on a side (side bar)
</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2><head> = Meta Info</h2>
<pre class='prettyprint'>
<head>
<title>Page Title - important & Required</title>
<meta name='description'
content='Page description - only important for search results page'/>
<meta name='keywords' content='Keywords, not that important'/>
<link href="stylesheet.css" rel="Stylesheet" type="text/css" />
...more stylesheets...
<script src="somejavascriptfile.js"></script>
...more scripts...
</head>
</pre>
</article>
<article class='slide slide-list'>
<h2><header></h2>
<ul>
<li><h3>a group of introductory or navigational aids</h3>
</li>
<li><h3>logos,
table of contents,
search form</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2><nav></h2>
<ul>
<li><h3>a section of a page that links to other pages or to parts within the page
</h3>
</li>
<li><h3>main navigation: home, about, contact,
user navigation: login, register, account
sidebar navigation: products, blogs, etc.</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2><section></h2>
<ul>
<li><h3>a group of content, typically with a heading</h3>
</li>
<li><h3>introduction,
<br/>news items,
<br/>contact information,
<br/>chapters,
<br/>tabbed pages in a tabbed dialog box,
<br/>numbered sections of a thesis.</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2><article></h2>
<ul>
<li><h3>Self-contained piece of content</h3>
</li>
<li><h3>forum post,<br/>magazine article,<br/>newspaper article,<br/>blog entry,
<br/>user-submitted comment,
<br/>interactive widget,
<br/>independent item of content.</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2><footer></h2>
<ul>
<li><h3>represents the footer for the section it applies to. (does not have to mean the bottom of the page)</h3>
</li>
<li><h3>information about its section,
<br/>who wrote it,
<br/>links to related documents,
<br/>copyright data,
<br/>appendices,
<br/>indexes,
<br/>colophons,
<br/>license agreements.</h3>
</li>
</ul>
</article>
<article class='slide slide-accent'>
<h1>how you might use these tags</h1>
</article>
<article style='background-image:url(images/alistapart.jpg);' class='slide slide-background'>
</article>
<article style='background-image:url(images/alistapart-over.jpg);' class='slide slide-background'>
</article>
<article style='background-image:url(images/squarespace.jpg);' class='slide slide-background'>
</article>
<article style='background-image:url(images/squarespace-over.jpg);' class='slide slide-background'>
</article>
<article style='background-image:url(images/digg.jpg);' class='slide slide-background'>
</article>
<article style='background-image:url(images/digg-over.jpg);' class='slide slide-background'>
</article>
<article class='slide slide-subhead'>
<h1>Writing Good HTML</h1>
<h2>"An HTML Chop"</h2>
</article>
<article class='slide slide-list'>
<h1>The Goals</h1>
<ul>
<li class='slide'>
<h3>HTML tags used in Meaningful ways
</h3>
</li>
<li class='slide'>
<h3>Validating markup</h3>
</li>
<li class='slide'><h3>All dynamic interactions added “unobtrusively” (usually via jQuery)</h3>
</li>
</ul>
</article>
<article class='slide slide-accent'>
<h1>Reminder! your HTML is not your design</h1>
</article>
<article class='slide slide-list'>
<h1>Tags We’ll be using</h1>
<p>The new (HTML5) semantic tags:<br/> <em><head>, <nav>, <section>,<article>, <footer>, <aside></em>
</p></br>
<p>The generic containers: <em><div></em> and <em><span></em>
</p></br>
<p>Images (<em><img></em>) and hyperlinks (<em><a></em>)
</p></br>
<p>The old semantic tags, including paragraph (<em><p></em>), headers (<em><h1></em>,<em><h2></em>,<em><h3></em>,<em><h4></em>)
</p></br>
<p>Lists, primarily unordered (<em><ul></em>). Unordered lists are often used for lists of menu items, form items, bulleted items, pretty much anything where there's a list of items that need to be styled consistently.
</p>
</article>
<article class='slide slide-subhead'>
<h1>You Must<br/>Validate!</h1>
<h2><a href='http://validator.w3.org/'>Validator</a></h2>
</article>
<article class='slide slide-list'>
<h2>Chop a Blog Post</h2>
<img src='images/designingfun.png' width='569'/>
</article>
<article class='slide slide-list'>
<h2>Blog Post Chop</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-save='S2012-blog-post-chop'>
</textarea>
</article>
<article class='slide slide-list'>
<h2>Chop a Full Site</h2>
<img src='images/fullsite.png' />
</article>
<article class='slide slide-list'>
<h2>Chop a Full Site</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-save='S2012-full-site-chop'>
</textarea>
</article>
<article class='slide slide-list'>
<h2>Basic Site Template</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant'>
<!DOCTYPE html>
<html>
<head>
<title>My Title</title>
<link rel="stylesheet" type='text/css' href="sample.css" />
</head>
<body>
<header>
<h1>Awesome Website</h1>
<nav id='top-menu'>
<ul class='menu'>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<section id='content'>
<article class='blog-post'>
<h1>Lorem Ipsum Blog Post</h1>
<h2>By writer person</h2>
<p>
Duis pellentesque velit sed est tincidunt nec lacinia nisi suscipit. Vivamus ut dolor vitae nisi gravida molestie. Morbi lorem augue, blandit id fringilla eget, vestibulum id nisl. Sed viverra eros ut sem rhoncus quis laoreet nisl condimentum. Duis aliquam viverra porttitor. Duis ligula ligula, venenatis sed sagittis in, mollis nec nulla. Curabitur imperdiet libero vitae sem sagittis sit amet posuere neque ultricies. Aenean lobortis, nunc sit amet tincidunt egestas, ipsum nulla dapibus nisl, at dapibus nisi sem non augue. Pellentesque convallis risus sit amet arcu porta et blandit mauris ultrices. Donec facilisis mollis elementum. Nam eget faucibus d</p>
<h2>Lorem McIpsum</h2>
<p>Nulla in ullamcorper erat. Curabitur auctor sagittis sollicitudin. Phasellus urna erat, vestibulum congue rutrum non, bibendum eu mauris. Aenean varius vulputate ante, quis lacinia felis sollicitudin quis. Nulla vitae dui sem. Ut rhoncus euismod dignissim. Pellentesque metus nisl, convallis id condimentum sed, ullamcorper sit amet odio. Suspendisse ut augue massa, nec mattis risus. Vestibulum mattis, leo et posuere porttitor, mi tortor porta quam, imperdiet fermentum mi turpis ac erat. Aliquam ut nisl et velit aliquam imperdiet at sit amet velit. Sed non hendrerit quam. Fusce dignissim, tellus sed blandit auctor, mi sem ultricies leo, eget iaculis sem ligula vitae mauris.</p>
<footer class='post-footer'>
Posted On 1/1/2011
</footer>
</article>
<aside id='sidebar'>
<h1>Older Posts</h1>
<ul>
<li><a href="#">Link1</a></li>
<li><a href="#">Link2</a></li>
</ul>
</aside>
</section>
<footer id='site-footer'>
<nav id='footer-nav'>
<ul>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Privacy Policy</a></li>
</ul>
</nav>
</footer>
</body>
</html>
</textarea>
</article>
<article class='slide slide-subhead'>
<h1>Let your HTML be your outline</h1>
<h2><a href='http://gsnedders.html5.org/outliner/'>http://gsnedders.html5.org/outliner/</a></h2>
</article>
<article class='slide slide-homework' id="homework-2">
<h2>Homework</h2>
<h3>Reading</h3>
<ul>
<li><h3>Duckett, Chapters 1-5 & 17</h3></li>
<li><h3><a href='http://www.codecademy.com/'>Sign up for Codecademy and complete Intro to HTML</a></h3>
</li>
</ul>
<h3>Coding</h3>
<ul>
<li>
<h3>Code Semantically (HTML) a recipe page - Validate it!</h3>
<h3>Upload the smallest pdf of your recipe card</h3>
<h3>Code Semantically (HTML) the Cats vs. Dogs site - Validate it!</h3>
</li>
</ul>
</ul>
</article>
<article class='slide slide-list'>
<h2>Layout for Cats vs. Dog</h2>
<h3><br/><img src="images/dogsvscat.png" class='top-image'/><br/><br/></h3>
</article>
<script src='dist/coderdeck.min.js'></script>
<!-- Prettify -->
<script src="src/prettify.js"></script>
<script>
$(function() {
$.deck('.slide');
});
</script>
</body>
</html>