-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
170 lines (159 loc) · 4.61 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
<!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>Web Development Cheatsheet</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="wrapper">
<header>
<h1>Web Development Cheatsheet</h1>
<p>A project created by Matt Hummel for CodeAcademy Front-End Development Pathway. Future references to be added later.</p>
<nav>
<ul>
<li>
<a href="#html">
HTML
</a>
</li>
<li>
<a href="#css">
CSS
</a>
</li>
</ul>
</nav>
</header>
<main>
<section id="html">
<h1>HTML</h1>
<h2>Tables Tags</h2>
<table>
<thead>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td><span class="code"><table></span></td>
<td>Table</td>
<td>The wrapper element for all HTML tables.</td>
</tr>
<tr>
<td><span class="code"><thead></span></td>
<td>Table Head</td>
<td>The set of rows defining the column headers in a table.</td>
</tr>
<tr>
<td><span class="code"><tbody></span></td>
<td>Table Body</td>
<td>The set of rows containing actual table data.</td>
</tr>
<tr>
<td><span class="code"><tr></span></td>
<td>Table Row</td>
<td>The table row container.</td>
</tr>
<tr>
<td><span class="code"><td></span></td>
<td>Table Data</td>
<td>The table row container.</td>
</tr>
<tr>
<td><span class="code"><tfoot></span></td>
<td>Table Foot</td>
<td>The set of rows defining the footer in a table.</td>
</tr>
</tbody>
</table>
</section>
<section id="css">
<h1>CSS</h1>
<h2>FlexBox</h2>
<p><strong>Set parent container to either:</strong></p>
<p>display: flex</p>
<p>display: inline-flex</p>
<h2>Flex Start</h2>
<p>justify-content: flex-start;
</p>
<div class='container' id='flexstart'>
<div class='box'></div>
<div class='box'></div>
<div class='box'></div>
</div>
<h2>Flex End</h2>
<p> justify-content: flex-end;
</p>
<div class='container' id='flexend'>
<div class='box'></div>
<div class='box'></div>
<div class='box'></div>
</div>
<h2>Center</h2>
<p>justify-content: flex-center;</p>
<div class='container' id='center'>
<div class='box'></div>
<div class='box'></div>
<div class='box'></div>
</div>
<h2>Space Around</h2>
<p>justify-content: space-around;</p>
<div class='container' id='spacearound'>
<div class='box'></div>
<div class='box'></div>
<div class='box'></div>
</div>
<h2>Space Between</h2>
<p>justify-content: space-between;</p>
<div class='container' id='spacebetween'>
<div class='box'></div>
<div class='box'></div>
<div class='box'></div>
</div>
<h1>Flex Start</h1>
<p>Add justify-content: center; to flex container</p>
<p> align-items: flex-start;</p>
<div class='container-center' id='flexstart'>
<div class='left'></div>
<div class='center'></div>
<div class='right'></div>
</div>
<h2>Flex End</h2>
<p>align-items: flex-end;</p>
<div class='container-center' id='flexend'>
<div class='left'></div>
<div class='center'></div>
<div class='right'></div>
</div>
<h2>Center</h2>
<p>align-items: center;</p>
<div class='container-center' id='center'>
<div class='left'></div>
<div class='center'></div>
<div class='right'></div>
</div>
<h2>Baseline</h2>
<p>align-items: baseline;</p>
<div class='container-center' id='baseline'>
<div class='left'></div>
<div class='center'></div>
<div class='right'></div>
</div>
<h2>Stretch</h2>
<div class='container-center' id='stretch'>
<div class='left'></div>
<div class='center'></div>
<div class='right'></div>
</div>
</section>
</main>
<footer>
<p>Web Development Cheatsheet coded by Matt Hummel</p>
</footer>
</div>
</body>
</html>