-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
427 lines (417 loc) · 17.6 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cheatsheet</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
</head>
<body>
<div class="header">
<h1>My Cheatsheets</h1>
<div class="intro-box">
<a href="#html-ref">
<p>Cheatsheet</p>
<h3>HTML</h3>
</a>
</div>
<div class="intro-box">
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS" target="_blank">
<p>Cheatsheet</p>
<h3>CSS</h3>
</a>
</div>
<div class="intro-box">
<a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript" target="_blank">
<p>Cheatsheet</p>
<h3>JAVASCRIPT</h3>
</a>
</div>
<div class="intro-box">
<a href="https://reactjs.org/tutorial/tutorial.html" target="_blank">
<p>Cheatsheet</p>
<h3>REACT</h3>
</a>
</div>
<div class="intro-box">
<a href="https://www.codecademy.com/learn/react-101/modules/react-101-jsx-u/cheatsheet" target="_blank">
<p>Cheatsheet</p>
<h3>GIT & GITHUB</h3>
</a>
</div>
<div class="intro-box">
<a href="https://www.codecademy.com/paths/front-end-engineer-career-path/" target="_blank">
<p>Cheatsheet</p>
<h3>FRONT-END ENGINEERING</h3>
</a>
</div>
</div>
<div>
<div id="html-ref" class="html-nav">
<h2>HTML Reference</h2>
<ul>
<li><a href="#elements-html">Elements and Structures</a></li>
<li><a href="#html-table">Tables</a></li>
<li><a href="#html-form">Forms</a></li>
<li><a href="#semantic-html">Semantic HTML</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes" arget="_blank">Attributes</a>
</li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN Web Docs</a></li>
</ul>
</div>
<div class="elements-html">
<h4 id="elements-html">Elements and Structures</h4>
<table>
<tr>
<th>Term</th>
<th>Description</th>
</tr>
<tr>
<td>HTML</td>
<td>HTML (HyperText Markup Language) is used to give content to a web page
and instructs web browsers on how to structure that content.</td>
</tr>
<tr>
<td>HTML Structure</td>
<td>HTML is organized into a family tree structure.
HTML elements can have parents, grandparents, siblings, children, grandchildren, etc.</td>
</tr>
<tr>
<td>Element Content</td>
<td>The content of an HTML element is the information between the opening and closing tags of an
element.</td>
</tr>
<tr>
<td>HTML Tag</td>
<td>The syntax for a single HTML tag is an opening angle bracket < followed by the element name and
a closing angle bracket>.</td>
</tr>
<tr>
<td>Closing Tag</td>
<td>An HTML closing tag is used to denote the end of an HTML element.
The syntax for a closing tag is a left angle bracket < followed by a forward slash / then the
element name and a right angle bracket to close>.</td>
</tr>
<tr>
<td>HTML Attributes</td>
<td>Values added to the opening tag of an element to configure the element or change the element’s
default behavior. </td>
</tr>
<tr>
<td>Unique ID Attributes</td>
<td>In HTML, specific and unique id attributes can be assigned to different elements in order to
differentiate between them.</td>
</tr>
<tr>
<td>Indentation</td>
<td>HTML code should be formatted such that the indentation level of text increases once for each
level of nesting.</td>
</tr>
<tr>
<td>Link to a Different Part of the Page #</td>
<td>The anchor element <a> can create hyperlinks to different parts of the same HTML document
using the href attribute
to point to the desired location with # followed by the id of the element to link to.</td>
</tr>
<tr>
<td>Comments</td>
<td>In HTML, comments can be added between an opening <!-- and closing -->. Content inside of
comments will not be rendered
by browsers, and are usually used to describe a part of code or provide other details.</td>
</tr>
<tr>
<td>Whitespace</td>
<td>Whitespace, such as line breaks, added to an HTML document between block-level elements will
generally be ignored by the
browser and are not added to increase spacing on the rendered HTML page. Rather, whitespace is
added for organization and easier reading of the HTML document itself.</td>
</tr>
<tr>
<td>File Path</td>
<td>URL paths in HTML can be absolute paths, like a full URL, for example:
https://developer.mozilla.org/en-US/docs/Learn
or a relative file path that links to a local file in the same folder or on the same server, for
example: ./style.css.</td>
</tr>
<tr>
<td>Document Type Declaration</td>
<td>The document type declaration <!DOCTYPE html> is required as the first line of an HTML
document.
The doctype declaration is an instruction to the browser about what type of document to expect
and which
version of HTML is being used, in this case it’s HTML5.
</td>
</tr>
</table><br>
<table>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><html></td>
<td>HTML</td>
<td>The root of an HTML document, should be added after the !DOCTYPE declaration.</td>
</tr>
<tr>
<td><head></td>
<td>Head</td>
<td>Contains general information about an HTML page that isn’t displayed on the page itself.</td>
</tr>
<tr>
<td><title></td>
<td>Title</td>
<td>Contains a text that defines the title of an HTML document and can only be contained inside a
document’s head element. </td>
</tr>
<tr>
<td><body></td>
<td>Body</td>
<td>Represents the content of an HTML document. Content inside <body> tags are rendered on the
web browsers.</td>
</tr>
<tr>
<td><div></td>
<td>Division</td>
<td>Used as a container that divides an HTML document into sections and is short for “division”.
</td>
</tr>
<tr>
<td><h1>-<h6></td>
<td>Headings</td>
<td>HTML can use six different levels of heading elements ordered from the highest level <h1> to
the lowest level <h6>.</td>
</tr>
<tr>
<td><li></td>
<td>List</td>
<td>List item element create list items inside: Ordered List <ol> & Unordered List <ul></td>
</tr>
<tr>
<td><ol></td>
<td>Ordered List</td>
<td>Creates a list of items in sequential order. Each list item appears numbered by default.</td>
</tr>
<tr>
<td><ul></td>
<td>Unordered List</td>
<td>Creates a list of items in no particular order. Each individual list item will have a bullet
point by default.</td>
</tr>
<tr>
<td><p></td>
<td>Paragraph</td>
<td>Contains and displays a block of text. </td>
</tr>
<tr>
<td><a></td>
<td>Anchor</td>
<td>Used to create hyperlinks in an HTML document. </td>
</tr>
<tr>
<td><span></td>
<td>Span</td>
<td>An inline container for text and can be used to group text for styling purposes.</td>
</tr>
<tr>
<td><img></td>
<td>Image</td>
<td>Embed images in documents. It is an empty element, meaning it should not have a closing tag.
</td>
</tr>
<tr>
<td><video></td>
<td>Video</td>
<td>Video element embeds a media player for video playback.</td>
</tr>
<tr>
<td><br></td>
<td>Line Break</td>
<td>Creates a line break in text and is especially useful where a division of text is required. No
closing tag needed. </td>
</tr>
<tr>
<td><em></td>
<td>Emphasis</td>
<td>Emphasis element emphasizes text and browsers will usually italicize the emphasized text by
default.</td>
</tr>
<tr>
<td><strong></td>
<td>Strong</td>
<td>Highlights important, serious, or urgent text and browsers will normally render this highlighted
text in bold by default.</td>
</tr>
</table>
</div>
<div class="html-table">
<h4 id="html-table">Tables</h4>
<table>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><table></td>
<td>Table</td>
<td>The wrapper element for all HTML tables.</td>
</tr>
<tr>
<td><thead></td>
<td>Table Head</td>
<td>The set of rows defining the column headers in a table.</td>
</tr>
<tr>
<td><tbody></td>
<td>Table Body</td>
<td>The set of rows containing actual table data.</td>
</tr>
<tr>
<td><tr></td>
<td>Table Row</td>
<td>The table row container.</td>
</tr>
<tr>
<td><td></td>
<td>Table Data</td>
<td>The table data container.</td>
</tr>
<tr>
<td><tfoot></td>
<td>Table Foot</td>
<td>The set of rows defining the footer in a table.</td>
</tr>
</table>
</div>
<div class="html-form">
<h4 id="html-form">Forms</h4>
<table>
<tr>
<th>Form Input Tag Attributes</th>
<th>Description</th>
</tr>
<tr>
<td><form></td>
<td>Defines a form.</td>
</tr>
<tr>
<td><select multiple name=? size=?></td>
<td>Creates a scrolling menu. Size sets the number of
menu items visible before user needs to scroll.</td>
</tr>
<tr>
<td><select name=?></td>
<td>Creates a pulldown menu</td>
</tr>
<tr>
<td><option></td>
<td>Sets off each menu item</td>
</tr>
<tr>
<td><textarea name=? cols="x" rows="y"></textarea>></td>
<td>Creates a text box area. Columns set the width;
rows set the height.</td>
</tr>
<tr>
<td><input type="checkbox" name=? value=?></td>
<td>Creates a checkbox.</td>
</tr>
<tr>
<td><input type="radio" name=? value=?></td>
<td>Creates a radio button.</td>
</tr>
<tr>
<td><input type="text" name=? size=?></td>
<td>Creates a one-line text area. Size sets length, in
characters.</td>
</tr>
<tr>
<td><input type="submit" value=?></td>
<td>Creates a submit button. Value sets the text in the
submit button.</td>
</tr>
<tr>
<td><input type="image" name=? src=? border=? alt=?></td>
<td>Creates a submit button using an image.</td>
</tr>
<tr>
<td><input type="reset"></td>
<td>Creates a reset button.</td>
</tr>
<tr>
<td><input type="email" name=?> </td>
<td>Sets a single-line textbox for email addresses.</td>
</tr>
<tr>
<td><input type="url" name=?> </td>
<td>Sets a single-line textbox for URLs.</td>
</tr>
<tr>
<td><input type="number" name=?> </td>
<td>Sets a single-line textbox for a number.</td>
</tr>
<tr>
<td><input type="range" name=?> </td>
<td> Sets a single-line text box for a range of numbers.</td>
</tr>
<tr>
<td><input type="date/month/week/time" name=?> </td>
<td>Sets a single-line text box with a calendar
showing the date/month/week/time </td>
</tr>
<tr>
<td><input type="color" name=?> </td>
<td> Sets a single-line text box for picking a color </td>
</tr>
</table>
</div>
<div class="semantic-html">
<h4 id="semantic-html">Semantic HTML</h4>
<table>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><header></td>
<td>Header</td>
<td>Specifies a header for a section or document.</td>
</tr>
<tr>
<td><nav></td>
<td>Navigation</td>
<td>Defines a set of main navigation links.</td>
</tr>
<tr>
<td><section></td>
<td>Section</td>
<td>Defines a section or group of related contents.</td>
</tr>
<tr>
<td><article></td>
<td>Article</td>
<td>Specifies an independent, self-contained content.</td>
</tr>
<tr>
<td><aside></td>
<td>Aside</td>
<td>The table data container.</td>
</tr>
<tr>
<td><footer></td>
<td>Footer</td>
<td>Is a footer for a document or a section.</td>
</tr>
</table>
</div>
</div>
<div class="footer">
<p>All Rights Reserved. © 2022 by Juniela Bautista</p>
</div>
</body>
</html>