-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
418 lines (383 loc) · 13.4 KB
/
main.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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>This is my HTML & CSS Cheat Sheet</title>
<link href="stylesheet.css" type="text/css" rel="stylesheet" />
</head>
<!-- This is a comment in HTML -->
<body>
<header>
<div id="header">
<h1 id="top">HTML & CSS Cheat Sheet</h1>
</div>
</header><!-- end of header -->
<p>
<center>
<h3>Flexbox Menu</h3>
</center>
</p>
<div class="wrapper">
<nav>
<ul>
<a href="#text_examples">Text Examples</a>
<a href="#lists">Lists</a>
<a href="#links">Links</a>
<a href="#images">Images</a>
<a href="#headings">Headings</a>
<a href="#tables">Tables</a>
<a href="#forms">Forms</a>
<a href="#iframe">iframes</a>
<a href="#video">HTML Video</a>
<a href="mailto:[email protected]">Email Me</a>
</ul>
</nav>
</div>
<p>
<center>
<h3>Basic Menu</h3>
</center>
</p>
<div id="nav">
<p>
<ul class="navigation">
<a href="#text_examples">TEXT EXAMPLES</a>
<a href="#lists">LISTS</a>
<a href="#links">LINKS</a>
<a href="#images">IMAGES</a>
<a href="#headings">HEADINGS</a>
<a href="#tables">TABLES</a>
<a href="#forms">FORMS</a>
<a href="#iframe">iFRAMES</a>
<a href="#video">HTML5 VIDEO</a>
<a href="mailto:[email protected]">EMAIL ME</a>
</ul>
</p>
</div><!-- end of navigation -->
<h1 id="text_examples">Text Examples</h1>
<p lang="en-us"><strong>This is example text </strong>showing various ways to use HTML to format text in a paragraph.
This also show how to use the sup & sub element, which is used for dates:
July 4<sup>th</sup> and text like chemical formulas: H<sub>2</sub>O<br />
This is a line break in a paragraph, which i'd like to <em>emphasis</em> here.
<blockquote cite="https://www.anquotes.com/tyler-durden-quotes/?expand_article=1#SnippetTab">
<p><acronym title="Fight Club movie quotes">Here is a blockquote with some abbreivated text:</acronym> “This is your life, and it's ending one minute at a time.”</p>
</blockquote>
<p><del>Whoopse</del><ins> Or this quote by Tyler Durden:</ins> <q><i>You are not special. You are not a beautiful or unique snowflake.
You are the same decaying organic matter as everything else.</i></q></p>
<hr />
<h1 id="lists">Lists</h1>
<ol>
<li>This is list item 1</li>
<li>This is list item 2</li>
<li>This is list item 3</li>
<ul>
<li>This is a nested list</li>
<li>This is a nested list</li>
<li>This is a nested list</li>
</ul>
</ol>
<ul>
<li>Unordered list a</li>
<li>Unordered list b</li>
<li>Unordered list c</li>
</ul>
<dl>
<dt>Definition list of pizza toppings</dt>
<dd>Sauce, cheese, pepperoni, sausage</dd>
</dl>
<hr />
<h1 id="links">Links</h1>
<p>Favorite Websites</p>
<ul>
<li><a href="https://www.theverge.com">The Verge</a></li>
<li><a href="https://www.macrumors.com">MacRumors</a></li>
<li><a href="https://www.daringfireball.net">Daring Fireball</a></li>
<li><a href="https://www.cnn.com" target="_blank">CNN</a>(Opens in a new window)</li>
</ul>
<hr />
<h1 id="headings">The six "levels" of headings</h1>
<h6>This is a Level 6 Heading</h6>
<h5>This is a Level 5 Heading</h5>
<h4>This is a Level 4 Heading</h4>
<h3>This is a Level 3 heading</h3>
<h2>This is a Level 2 Heading</h2>
<h1>This is a level 1 Heading</h1>
<hr />
<p lang="en-us">This text might be an introduction to the rest of the page.
And if the page is a long one it might be slight into several sub-headings</p>
<h2>This is a Sub-Heading with <i>italics</i> and <b>bold</b> fonts</h2>
<p lang="en-us">Many long articles have sub-headings so to help you follow the structure of what is being written.
There may even be sub-sub-headings (or lower-level headings).</p>
<h2>Another Sub-Heading</h2>
<p lang="en-us">Here you see another sub-heading.</p>
</p>
<hr />
<h1 id="images">Images</h1>
<img src="images/halo.jpg" alt="halo" title="halo" width="450" height="250" class="align-left medium" />
<p>Master Chief attacking the Covenant with an energy sword</p>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<p><img src="images/mclaren.jpeg" alt="mclarenp1" title="mclarenp1" width="450" height="250" class="align-right medium" />
This is the McLaren P1 while also demonstrating text with an image inside the start of a paragraph.</p>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<p><img src="images/batman.jpeg" alt="batman" title="batman" width="450" height="250" class="align-left medium" />
Batman with the image text aligned to the middle of the image.</p>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><br>
<br>
<br>
<h1 id="tables">Tables</h1>
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
</table>
<h3>Table Headings:</h3>
<table>
<tr>
<th></th>
<th scope="col">Col 1</th>
<th scope="col">Col 2</th>
</tr>
<tr>
<th scope="row">Row 1:</th>
<td>120</td>
<td>135</td>
</tr>
<tr>
<th scope="row">Row 2</th>
<td>$600</td>
<td>$675</td>
</tr>
</table>
<h3>Spanning Columns:</h3>
<table>
<tr>
<th></th>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 3</th>
<th>Col 4</th>
</tr>
<tr>
<th>Row 1</th>
<td colspan="4">Four Columns of Data</td>
<td></td>
<td></td>
</tr>
<tr>
<th>Row 2</th>
<td colspan="3"></td>
<td></td>
</tr>
</table>
<h3>Spanning Rows:</h3>
<table>
<tr>
<th></th>
<th>FOX</th>
<th>NBC</th>
<th>CNN</th>
</tr>
<tr>
<th>6pm - 7pm</th>
<td rowspan="2">Simpsons</td>
<td>Comedy</td>
<td>News</td>
</tr>
<tr>
<th class="even">7pm - 8pm</th>
<td class="even">Sports</td>
<td class="even">Current Affairs</td>
</tr>
</table>
<h3>Long Tables:</h3>
<table>
<thead>
<tr>
<th>Date</th>
<th>Income</th>
<th>Expenses</th>
</tr>
</thead>
<tbody>
<tr>
<th>1st January</th>
<td>250</td>
<td>36</td>
</tr>
<tr>
<th class="even">2nd January</th>
<td class="even">285</td>
<td class="even">48</td>
</tr>
<tr>
<th>3rd January</th>
<td>260</td>
<td>42</td>
</tr>
<tr>
<th class="even">4th January</th>
<td class="even">290</td>
<td class="even">38</td>
</tr>
</tbody>
</table>
<hr />
<h1 id="forms">Forms</h1>
<form action="http://www.example.com/comments.php">
<p>Username:
<input type="text" name="Username" size="15" maxlength="30" />
</p>
<p>Password:
<input type="password" name="password" size="15" maxlength="30" />
</p>
<h3>Text Area Form:</h3>
</form>
<form action="http://www.example.com/comments.php">
<p>What do you think?</p>
<textarea name="comments" cols="20" rows="4">Enter your comments....</textarea>
</form>
<h3>Radio Buttons:</h3>
<form action="http://www.example.com/profile.php"></form>
<p>Select your favorite genre:</p>
<input type="radio" name="genre" value="rock" checked="checked" /> Rock
<input type="radio" name="genre" value="pop" /> Pop
<input type="radio" name="genre" value="rap" /> Rap
</form>
</p>
<h3>Checkboxes:</h3>
<form action="http://www.example.com/profile.php"></form>
<p>Select your favorite musician:</p>
<input type="checkbox" name="musician" value="Slipknot" checked="checked" /> Slipknot
<input type="checkbox" name="musician" value="nineinchnails" /> Nine Inch Nails
<input type="checkbox" name="musician" value="linkinpark" /> Linkin Park
</form>
<h3>Drop Down List Boxes:</h3>
<form action="http://www.example.com/profile.php"></form>
<p>What is your favorite game console:</p>
<select name="consoles">
<option value="Xbox"> Xbox</option>
<option value="Xbox"> Playstation</option>
<option value="Xbox"> Nintendo</option>
</select>
</form>
<h3>Multiple Select Boxes:</h3>
<form action="http://www.example.com/profile.php"></form>
<p>Do you like any of the following games?
(You can select more than one by holding down Control on PC
and Command on Mac while selecting multiple options.)
</p>
<select name="games" size="5" multiple="multiple">
<option value="Halo"> Halo</option>
<option value="Mario"> Mario</option>
<option value="Sonic"> Sonic</option>
<option value="Madden"> Madden</option>
<option value="Tony Hawk"> Tony Hawk</option>
</select>
</form>
<h3>Forms with Buttons:</h3>
<form action="http://www.example.com/upload.php" method="post"></form>
<p>Upload your file</p>
<input type="file" name="file" /><br />
<input type="submit" value="Upload" />
</form>
<form action="http://www.example.com/subscribe.php">
<p>Subscribe to our email list:</p>
<input type="text" name="email" />
<input type="submit" name="subscribe" value="Subscribe" />
</form>
<h3>Button with image:</h3>
<form action="http://www.example.org/subscribe.php">
<p>Subscribe to our email list:</p>
<input type="text" name="email" />
<input type="image" src="images/subscribe.jpg" width="100" height="20" />
</form>
<h3>Labeling Form Controls:</h3>
<form action="http://www.example.com/subscribe.php">
<label>Age: <input type="text" name="age" /></label>
<br />
Gender:
<input id="female" type="radio" name="gender" value="f">
<label for="female">Female</label>
<input id="male" type="radio" name="gender" value="m">
<label for="male">Male</label>
</form>
<h3>Grouping Form Elements:</h3>
<form action="http://www.example.com/subscribe.php">
<fieldset class="form">
<legend>Contact details</legend>
<label>Email:<br /><input type="text" name="email" /></label><br />
<label>Mobile:<br /><input type="text" name="mobile" /></label><br />
<label>Telephone:<br /><input type="text" name="telephone" /></label>
</fieldset>
</form>
<hr />
<h1 id="iframe">iFrames</h1>
<iframe src="https://maps.google.co.uk/maps?q=moma+new+york&output=embed" width="450" height="350" frameborder="1" scrolling="no">
</iframe>
<div id="header">
<h2>Yoda Fountain</h2>
<ul>
<li><a href="https://www.lucasfilm.com/campuses/san-francisco/">Lucasfilm San Francisco</a></li>
<li><a href="https://www.lucasfilm.com/productions/">Productions</a></li>
</ul>
</div><!-- end header -->
<div id="content">
<p>Lucasfilm, San Francisco, California, 94129</p>
<p><span class="contact">Telephone</span> 415-623-1000</p>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3152.6249300651975!2d-122.45306072404473!3d37.798828810773806!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8085872a4f73f3fd%3A0xe9c90de80067ba0e!2sYoda%20Fountain!5e0!3m2!1sen!2sus!4v1703184810948!5m2!1sen!2sus" width="450" height="350" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div><!-- end content -->
<p>© Lucasfilm</p>
<h1 id="video">HTML5 Video</h1>
<p>Abstract art sample movie:</p>
<video src="images/video.mp4" poster="images/video.png" width="400" height="300" preload="auto" controls autoplay="on" loop="on" loop>
</video>
<br>
<br>
<br>
<br>
<p>Click <a href="#top">here</a> to go back to the top of the page!</p>
</body>
<script src="test.js"></script>
</html>