-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
319 lines (318 loc) · 14.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML & CSS Cheatsheet</title>
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body id="top">
<header class="header">
<img src="https://www.w3.org/html/logo/downloads/HTML5_Badge.svg" alt="HTML5 Logo">
<h1><a href="./index.html">HTML Cheatsheet</a></h1>
</header>
<div class="wrapper">
<main>
<section id="typograph">
<header>
<h2>Typography</h2>
<a href="#top">top</a>
</header>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Element</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="code"><h1></span> to <span class="code"><h6></span>
</td>
<td>Headings</td>
<td>Defines HTML headings</td>
</tr>
<tr>
<td><span class="code"><p></span></td>
<td>Paragraph</td>
<td>Defines a paragraph</td>
</tr>
<tr>
<td><span class="code"><strong></span></td>
<td>Strong</td>
<td>Define bold text of high importance.</td>
</tr>
<tr>
<td><span class="code"><b></span></td>
<td>Bold</td>
<td>Define bold text without importance.</td>
</tr>
<tr>
<td><span class="code"><em></span></td>
<td>Emphasize</td>
<td>Define emphasized text.</td>
</tr>
<tr>
<td><span class="code"><small></span></td>
<td>Small</td>
<td>Defines smaller text.</td>
</tr>
<tr>
<td><span class="code"><q></span></td>
<td>Quote</td>
<td>Define a short quotation.</td>
</tr>
<tr>
<td><span class="code"><mark></span></td>
<td>Mark</td>
<td>Define text to be highlighted.</td>
</tr>
<tr>
<td><span class="code"><sup></span></td>
<td>Superscript</td>
<td>Define superscript text.</td>
</tr>
<tr>
<td><span class="code"><sub></span></td>
<td>Subscript</td>
<td>Define subscript text.</td>
</tr>
</tbody>
</table>
</div>
</section>
<section id="anchors">
<header>
<h2>Anchor</h2>
<a href="#top">top</a>
</header>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Element</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="code"><a></span></td>
<td>Anchor</td>
<td>Defines a hyperlink</td>
</tr>
</tbody>
</table>
</div>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Attributes</th>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="code">href</span></td>
<td><span class="code-alt">URL</span></td>
<td>Specifies the URL of the links destination.</td>
</tr>
<tr>
<td><span class="code">target</span></td>
<td>
<ul>
<li><span class="code-alt">_self</span> - Opens in same window</li>
<li><span class="code-alt">_blank</span> - Opens in new window</li>
<li><span class="code-alt">_parent</span> - Opens in the parent frame</li>
<li><span class="code-alt">_top</span> - Opens in full body of window</li>
</ul>
</td>
<td>Specifies where to open the hyperlink.</td>
</tr>
</tbody>
</table>
</div>
</section>
<section id="lists">
<header>
<h2>Lists</h2>
<a href="#top">top</a>
</header>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Element</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="code"><ul></span></td>
<td>Un-ordered List</td>
<td>Defines an un-ordered List</td>
</tr>
<tr>
<td><span class="code"><ol></span></td>
<td>Ordered List</td>
<td>Defines an ordered List</td>
</tr>
<tr>
<td><span class="code"><li></span></td>
<td>List Item</td>
<td>Defines a list item</td>
</tr>
</tbody>
</table>
</div>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Attributes</th>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="code">reversed</span></td>
<td><span class="code-alt">reversed</span></td>
<td>Specifies that the ordered list should be reversed.</td>
</tr>
<tr>
<td><span class="code">start</span></td>
<td><span class="code-alt">number</span></td>
<td>Specifies the start value of an ordered list.</td>
</tr>
<tr>
<td><span class="code">type</span></td>
<td>
<ul>
<li><span class="code-alt">1</span> - Numbers (defualt)</li>
<li><span class="code-alt">A</span> - Uppercase Alphabetical</li>
<li><span class="code-alt">a</span> - Lowercase Alphabetical</li>
<li><span class="code-alt">I</span> - Uppercase Roman Numerals</li>
<li><span class="code-alt">i</span> - Lowercase Roman Numerals</li>
</ul>
</td>
<td>Specifies the kind of marker to use in the ordered list.</td>
</tr>
</tbody>
</table>
</div>
</section>
<section id="tables">
<header>
<h2>Table</h2>
<a href="#top">top</a>
</header>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Element</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="code"><table></span></td>
<td>Table</td>
<td>Defines a HTML table</td>
</tr>
<tr>
<td><span class="code"><caption></span></td>
<td>Table Caption</td>
<td>Defines a table caption</td>
</tr>
<tr>
<td><span class="code"><thead></span></td>
<td>Table Head</td>
<td>Defines a table head</td>
</tr>
<tr>
<td><span class="code"><tbody></span></td>
<td>Table Body</td>
<td>Defines a table body</td>
</tr>
<tr>
<td><span class="code"><tfoot></span></td>
<td>Table Foot</td>
<td>Defines a table foot</td>
</tr>
<tr>
<td><span class="code"><tr></span></td>
<td>Table Row</td>
<td>Defines a table row</td>
</tr>
<tr>
<td><span class="code"><th></span></td>
<td>Table Heading</td>
<td>Defines a table heading</td>
</tr>
<tr>
<td><span class="code"><td></span></td>
<td>Table Data</td>
<td>Defines a table data</td>
</tr>
</tbody>
</table>
</div>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Attributes</th>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="code">colspan</span></td>
<td><span class="code-alt">number</span></td>
<td>Specifies the number of columns a cell should span.</td>
</tr>
<tr>
<td><span class="code">rowspan</span></td>
<td><span class="code-alt">number</span></td>
<td>Sets the number of rows a cell should span.</td>
</tr>
</tbody>
</table>
</div>
</section>
</main>
<aside>
<nav>
<h3>HTML</h3>
<ul>
<li><a href="#typograph">Typography</a></li>
<li><a href="#anchors">Anchors</a></li>
<li><a href="#lists">Lists</a></li>
<li><a href="#tables">Tables</a></li>
<li>Layout</li>
<li>Forms</li>
<li>Buttons</li>
</ul>
<h3>Resources</h3>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN</a></li>
<li><a href="https://www.w3schools.com/html/default.asp" target="_blank">W3Schools</a></li>
<li><a href="https://devdocs.io/html/" target="_blank">DevDocs</a></li>
</ul>
</nav>
</aside>
</div>
<footer>
<p><a href="https://github.com/WPBC/html-cheatsheet" target="_blank"><img src="assets/img/github.png" alt="Github Logo"></a></p>
</footer>
</body>
</html>