forked from stElmitchay/cf-eng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
w5.html
359 lines (327 loc) · 12.7 KB
/
w5.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Advanced HTML and CSS</title>
<link rel="icon" type="image/png" href="assets/Engineering_Workshop_14_OCT.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/reset.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/reveal.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/theme/night.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/a11y-dark.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/progress/progress.min.css">
<style>
.reveal code {
color: var(--r-link-color-hover);
}
body {
background: linear-gradient(100%, #1a2a6c, #b21f1f, #fdbb2d);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {background-position: 0% 50%;}
50% {background-position: 100% 50%;}
100% {background-position: 0% 50%;}
}
.reveal h2, .reveal h3, .reveal h4, .reveal h5 {
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.reveal ul li {
margin-bottom: 10px;
}
.reveal pre {
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h2>Advanced HTML and CSS</h2>
<p>Taking your web development skills to the next level</p>
</section>
<section>
<section>
<h3>Semantic HTML Elements</h3>
<p>Semantic elements clearly describe their meaning to both the browser and the developer.</p>
<ul>
<li>Non-semantic elements: <code><div></code>, <code><span></code></li>
<li>Semantic elements: <code><form></code>, <code><table></code>, <code><article></code></li>
</ul>
</section>
<section>
<h3>Exercise: Semantic HTML</h3>
<p>Identify one non-semantic element in your HTML and suggest a semantic alternative.</p>
</section>
<section>
<h5>Common Semantic Elements</h5>
<ul>
<li><code><section></code></li>
<li><code><article></code></li>
<li><code><header></code></li>
<li><code><footer></code></li>
<li><code><main></code></li>
<li><code><nav></code></li>
<li><code><aside></code></li>
</ul>
</section>
<section>
<h5>Semantic Structure Example</h5>
<pre><code class="language-html">
<header>
<h1>My Website</h1>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
</ul>
</nav>
</header>
<main>
<article>
<h2>Article Title</h2>
<p>Article content...</p>
</article>
<aside>
<h3>Related Links</h3>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
</ul>
</aside>
</main>
<footer>
<p>© 2024 My Website</p>
</footer>
</code></pre>
</section>
<section>
<h3>Exercise: Blog Structure</h3>
<p>List three semantic elements you would use to structure a simple blog post.</p>
</section>
</section>
<section>
<section>
<h3>HTML Tables</h3>
<p>Used for displaying tabular data with rows and columns.</p>
</section>
<section>
<pre><code class="language-html">
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
</tbody>
</table>
</code></pre>
</section>
<section>
<h3>Exercise: HTML Table</h3>
<p>Create a simple HTML table with 2 columns and 3 rows, including a header row.</p>
</section>
</section>
<section>
<section>
<h3>HTML Forms</h3>
<p>Used to collect user input.</p>
<pre><code class="language-html">
<form action="/submit" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<button type="submit">Submit</button>
</form>
</code></pre>
</section>
<section>
<h5>Form Input Types</h5>
<pre><code class="language-html">
<input type="text" name="username">
<input type="password" name="password">
<input type="email" name="email">
<input type="checkbox" name="subscribe">
<input type="radio" name="gender" value="male"> Male
<input type="radio" name="gender" value="female"> Female
<input type="submit" value="Submit">
</code></pre>
</section>
<section>
<h3>Exercise: HTML Form</h3>
<p>Create a simple contact form with fields for name, email, and a message.</p>
</section>
<section>
<h5>Checkboxes and Dropdown</h5>
<pre><code class="language-html">
<!-- Checkboxes -->
<input type="checkbox" id="option1" name="option1" value="1">
<label for="option1">Option 1</label>
<input type="checkbox" id="option2" name="option2" value="2">
<label for="option2">Option 2</label>
<!-- Dropdown -->
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</code></pre>
</section>
</section>
<section>
<section>
<h3>Advanced CSS: Flexbox</h3>
<p>A layout model that provides an easy and clean way to arrange items within a container.</p>
</section>
<section>
<pre><code class="language-css">
.container {
display: flex;
justify-content: space-between;
align-items: center;
}
.item {
flex: 1;
}
</code></pre>
</section>
<section>
<h3>Exercise: Flexbox Layout</h3>
<p>Use Flexbox to create a simple horizontal navigation bar with three items.</p>
</section>
<section>
<h5>Advanced CSS: Grid</h5>
<p>A two-dimensional layout system for the web.</p>
<pre><code class="language-css">
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.item {
grid-column: span 2;
}
</code></pre>
</section>
<section>
<h3>Exercise: CSS Grid</h3>
<p>Create a simple 2x2 grid layout using CSS Grid.</p>
</section>
</section>
<section>
<section>
<h5>CSS Transitions and Animations</h5>
<h5>Transitions</h5>
<pre><code class="language-css">
.button {
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #ff0000;
}
</code></pre>
</section>
<section>
<h3>Exercise: CSS Transition</h3>
<p>Add a simple color transition to a button on hover.</p>
</section>
<section>
<h5>CSS Transitions and Animations</h5>
<h5>Animations</h5>
<pre><code class="language-css">
@keyframes slide-in {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
.animated-element {
animation: slide-in 0.5s forwards;
}
</code></pre>
</section>
<section>
<h3>Exercise: CSS Animation</h3>
<p>Create a simple fade-in animation for a heading element.</p>
</section>
</section>
<section>
<section>
<h3>CSS Preprocessors: Sass</h3>
<p>Extends CSS with features like variables, nesting, and mixins.</p>
</section>
<section>
<pre><code class="language-scss">
$primary-color: #3498db;
.button {
background-color: $primary-color;
&:hover {
background-color: darken($primary-color, 10%);
}
}
</code></pre>
</section>
<section>
<h3>Exercise: Sass Variables</h3>
<p>Define a Sass variable for a primary color and use it in a button style.</p>
</section>
</section>
<section>
<h3>Responsive Web Design</h3>
<p>Creating web pages that look good on all devices.</p>
<pre><code class="language-css">
@media screen and (max-width: 600px) {
.column {
width: 100%;
}
}
</code></pre>
</section>
<section>
<h3>Exercise: Media Query</h3>
<p>Write a media query that changes the font size of a heading when the screen width is less than 480px.</p>
</section>
<section>
<h3>Thank You!</h3>
<p>Any questions?</p>
<img src="https://media.giphy.com/media/3o7buirYcmV5nSwIRW/giphy.gif" alt="Thank You GIF">
</section>
<section>
<h2>Ready for More?</h2>
<p>Continue your web development journey!</p>
<a href="w6.html" class="button" style="display: inline-block; padding: 10px 20px; background-color: #e23c3c; color: white; text-decoration: none; font-size: 18px; border-radius: 5px; transition: background-color 0.3s;">
Next
</a>
<a href="index.html" class="button" style="display: inline-block; padding: 10px 20px; background-color: #3ce267; color: white; text-decoration: none; font-size: 18px; border-radius: 5px; transition: background-color 0.3s; margin-left: 10px;">
Back to Home
</a>
</section>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/reveal.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/markdown/markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/highlight/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/progress/progress.min.js"></script>
<script>
Reveal.initialize({
hash: true,
plugins: [ RevealMarkdown, RevealHighlight ],
transition: 'slide',
transitionSpeed: 'default',
backgroundTransition: 'slide'
});
</script>
</body>
</html>