forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
395 lines (358 loc) · 12.5 KB
/
index.html
File metadata and controls
395 lines (358 loc) · 12.5 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>HTML for not-so-smart-ppl</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/night.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<style type="text/css">
code {
color: #FFBFAF;
}
.reveal pre {
font-size: 0.7em;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>HTML</h1>
<h3>for not-so-smart-ppl</h3>
</section>
<section>
<h3>Elementer af en hjemmeside</h3>
<ul>
<li>HTML - HyperText Markup Language<br />
<small>Strukturering af indhold</small>
</li>
<li>CSS - Cascading StyleSheets<br />
<small>Styling af indhold</small>
</li>
<li>JavaScript<br />
<small>Interaktion med indhold</small>
</li>
<li>Andre ressourcer<br />
<small>billede, videoer, fonte, ...</small></li>
</ul>
</section>
<section>
<h2>Syntaks & Semantik</h2>
</section>
<section>
<section>
<h2>Syntaks</h2>
<p>Hvordan det skal skrives</p>
</section>
<section>
<h2>Et HTML element</h2>
<h3>
<code><span class="fragment highlight-blue" data-fragment-index="1"><a href="http://disney.com"></span><span class="fragment highlight-green" data-fragment-index="2">Et link</span><span class="fragment highlight-red" data-fragment-index="3"></a></span></code>
</h3>
<ul>
<li class="fragment" data-fragment-index="1" style="color: #1b91ff;">Start tag</li>
<li class="fragment" data-fragment-index="2" style="color: #17ff2e;">Krop</li>
<li class="fragment" data-fragment-index="3" style="color: #ff2c2d;">Slut tag</li>
</ul>
</section>
<section>
<code><small><span style="color: #1b91ff;"><a href="http://disney.com"></span>Et link</a></small></code>
<h2>Et start tag</h2>
<h3>
<code><span class="fragment highlight-blue" data-fragment-index="1"><</span><span class="fragment highlight-green" data-fragment-index="2">a</span><span class="fragment highlight-red" data-fragment-index="3"> href="http://disney.com"</span><span class="fragment highlight-blue" data-fragment-index="1">></span></code>
</h3>
<ul>
<li class="fragment" data-fragment-index="1" style="color: #1b91ff;"><code><</code> og <code>></code> (mindre end og større end)</li>
<li class="fragment" data-fragment-index="2" style="color: #17ff2e;">Navn</li>
<li class="fragment" data-fragment-index="3" style="color: #ff2c2d;">Attributter</li>
</ul>
</section>
<section>
<code><small><span style="color: #1b91ff;"><a href="http://disney.com"></span>Et link</a></small></code>
<h2>Attributter</h2>
<h3>
<code><span class="fragment highlight-blue" data-fragment-index="1">href</span><span class="fragment highlight-green" data-fragment-index="2">=</span><span class="fragment highlight-red" data-fragment-index="3">"http://disney.com"</span></code>
</h3>
<ul>
<li class="fragment" data-fragment-index="1" style="color: #1b91ff;">Navn</li>
<li class="fragment" data-fragment-index="2" style="color: #17ff2e;"><code>=</code> (lig med)</li>
<li class="fragment" data-fragment-index="3" style="color: #ff2c2d;">Værdi, omkranset af <code>"</code> (gåseøjne)</li>
<li class="fragment" data-fragment-index="4"><code>=</code> og værdi kan unlades ved nogen attributter<br />fx <code>checked</code></li>
</ul>
</section>
<section>
<code><small><a href="http://disney.com">Et link<span style="color: #ff2c2d;"></a></span></small></code>
<h2>Slut tag</h2>
<h3>
<code><span class="fragment highlight-blue" data-fragment-index="1"><</span><span class="fragment highlight-green" data-fragment-index="2">/</span><span class="fragment highlight-red" data-fragment-index="3">a</span><span class="fragment highlight-blue" data-fragment-index="1">></span></code>
</h3>
<ul>
<li class="fragment" data-fragment-index="1" style="color: #1b91ff;"><code><</code> og <code>></code> (mindre end og større end)</li>
<li class="fragment" data-fragment-index="2" style="color: #17ff2e;"><code>/</code> (skråstreg)</li>
<li class="fragment" data-fragment-index="3" style="color: #ff2c2d;">Navn</li>
<li class="fragment" data-fragment-index="4">
Nogen elementer har ikke en krop og behøver derfor ikke slut tag<br />
I de situationer kan start tagget slutte med <code>/</code> (skråstreg)<br />
fx <code><input type="checkbox" /></code>
</li>
</ul>
</section>
<section>
<code><small><a href="http://disney.com"><span style="color: #17ff2e;">Et link</span></a></small></code>
<h2>Krop</h2>
<p>En krop kan bestå af tekst og andre HTML elementer</p>
<code>Et <strong>fedt</strong> link</code>
</section>
</section>
<section>
<h2>Specialtegn</h2>
Alle <code><</code> bliver opfattet som starten på et tag.<br />
Specialtegn kan skrives med <code>&xx;</code>
<table>
<tr>
<td><code><</code></td>
<td><code>&lt;</code></td>
</tr>
<tr>
<td><code>></code></td>
<td><code>&gt;</code></td>
</tr>
<tr>
<td><code>"</code></td>
<td><code>&quot;</code></td>
</tr>
<tr>
<td><code>&</code></td>
<td><code>&amp;</code></td>
</tr>
</table>
</section>
<section>
<h2>Whitespace</h2>
<p>Mellemrum og linjeskift ignoreres næsten.</p>
<p>En række whitespace smeltes sammen til <em>ét</em> mellemrum.</p>
</section>
<section>
<h2>HTML dokument</h2>
<pre><code data-trim data-noescape>
<html>
<head>
<title>Hello title!</title>
<link rel="stylesheet" href="/styles/style.css" />
<script src="/scripts/script.js"></script>
</head>
<body>
Hello world!
</body>
</html>
</code></pre>
</section>
<section>
<section>
<h2>Semantik</h2>
<p>Hvad det betyder</p>
</section>
<section>
<h2>Block og inline</h2>
<p style="border: 2px solid green; background-color: #000F03; padding: 4px;">
Dette er et block element.<br />
Men her kommer et par <span style="border: 2px solid red; background-color: #0F0300; padding: 0 8px;">inline elementer</span> og <span style="border: 2px solid red; background-color: #0F0300; padding: 0 8px;">blander</span> sig.
</p>
<p style="border: 2px solid green; background-color: #000F03; padding: 4px;">
Et andet block element
</p>
<p>
Vha <code>float</code> i CSS kan man få et element til "svæve" til højre eller venstre
</p>
</section>
<section>
<h2>Link</h2>
<pre><code data-trim data-noescape>
<a href="http://disney.com">Et link</a>
</code></pre>
<a href="http://combine.dk">Et link</a>
</section>
<section>
<h2>Overskrifter</h2>
<pre><code data-trim data-noescape>
<h1>Overskrift 1</h1>
<h2>Overskrift 2</h2>
<h3>Overskrift 3</h3>
<h4>Overskrift 4</h4>
<h5>Overskrift 5</h5>
<h6>Overskrift 6</h6>
</code></pre>
</section>
<section>
<h2>Tekst</h2>
<pre><code data-trim data-noescape>
<p>En paragraf</p>
<strong>En fed tekst</strong>
<em>En kursiv tekst</em>
Et<br />linjeskift
</code></pre>
<p>En paragraf</p>
<p><strong>En fed tekst</strong></p>
<em>En kursiv tekst</em></p>
<p>Et<br />linjeskift</p>
</section>
<section>
<h2>Billede</h2>
<pre><code data-trim data-noescape>
<img src="/image.jpg" alt="Et billede" />
</code></pre>
<img src="/image.jpg" alt="Et billede" style="width: 250px;" />
</section>
<section>
<h2>Lister</h2>
<pre><code data-trim data-noescape>
<ul>
<li>Et punkt</li>
<li>Et andet punkt</li>
</ul>
<ol>
<li>Det første punkt</li>
<li>Punkt nummer to</li>
</ol>
</code></pre>
<p>
<ul>
<li>Et punkt</li>
<li>Et andet punkt</li>
</ul>
</p>
<p>
<ol>
<li>Det første punkt</li>
<li>Punkt nummer to</li>
</ol>
</p>
</section>
<section>
<h2>Tabel</h2>
<pre><code data-trim data-noescape>
<table>
<tr>
<th>Første kolonne</th>
<th>Anden kolonne</th>
<th>3. kolonne</th>
</tr>
<tr>
<td>Værdi 1</td>
<td>2. værdi</td>
<td>Nummer tre</td>
</tr>
</table>
</code></pre>
<table>
<tr>
<th>Første kolonne</th>
<th>Anden kolonne</th>
<th>3. kolonne</th>
</tr>
<tr>
<td>Værdi 1</td>
<td>2. værdi</td>
<td>Nummer tre</td>
</tr>
<tr>
<td>Ichi</td>
<td>Ni</td>
<td>San</td>
</tr>
</table>
</section>
<section>
<h2>Form</h2>
<pre><code data-trim data-noescape>
<form action="" method="GET">
<input type="text" name="" value="" />
<input type="checkbox" name="" value="1" checked />
<input type="radio" name="" value="1" checked />
<textarea name=""></textarea>
<select name="">
<option value="1" selected>Den første</option>
</select>
<button type="submit">Gem</button>
</form>
</code></pre>
<form action="" method="GET">
<input type="text" name="" value="" />
<input type="checkbox" name="" value="1" checked />
<input type="radio" name="" value="1" checked />
<textarea name=""></textarea>
<select name="">
<option value="1" selected>Den første</option>
</select>
<button type="submit">Gem</button>
</form>
</section>
<section>
<h2>Grupperingselementer</h2>
<pre><code data-trim data-noescape>
<div>Noget indhold</div>
<span>Noget andet</span>
</code></pre>
<ul>
<li><code>div</code> er et block element</li>
<li><code>span</code> er et inline element</li>
</ul>
</section>
</section>
<section>
<h2>Generelle attributter</h2>
<ul>
<li><code>id="login_form"</code><br />
Til unik identifikation<br />
<small>HTML, CSS, JavaScript</small>
</li>
<li><code>class="text-success pull-right"</code><br />
Til styling classer<br />
<small>CSS, JavaScript</small></li>
<li><code>style="width: 200px;"</code><br />
Til specifik element styling<br />
<small>CSS</small></li>
<li><code>onxx=""</code><br />
Til events<br />
fx <code>onclick="form.submit();"</code><br />
<small>JavaScript</small></li>
</ul>
</section>
<section>
<em>Fin.</em>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
width: 1920, /* 1248 */
height: 1080, /* 702 */
controls: false,
history: true,
transition: 'convex',
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>