-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
244 lines (244 loc) · 7.75 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
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
<!-- essentials -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Web Essentials</title>
<meta
name="description"
content="Web Essentials is the boilerplate template and style guide for the basic HTML and CSS of any website."
/>
<!-- extras -->
<meta name="author" content="David Hartsough" />
<link rel="canonical" href="https://davidhartsough.com/web-essentials/" />
<meta name="application-name" content="Web Essentials" />
<meta name="theme-color" content="#0000ff" />
<!-- open graph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Web Essentials" />
<meta
property="og:description"
content="Web Essentials is the boilerplate template and style guide for the basic HTML and CSS of any website."
/>
<meta
property="og:url"
content="https://davidhartsough.com/web-essentials/"
/>
<meta property="og:site_name" content="Web Essentials" />
<meta property="og:locale" content="en_US" />
<meta property="og:image" content="./icon512.png" />
<meta property="og:image:alt" content="Web Essentials logo icon" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />
<!-- icons -->
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="icon" href="./icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
<!-- manifest -->
<link rel="manifest" href="./manifest.json" />
<!-- stylesheets -->
<link rel="stylesheet" href="./index.css" />
</head>
<body>
<main>
<article>
<header>
<h1>Web Essentials</h1>
<p>2023-07-30</p>
</header>
<h2>Typography</h2>
<p>
This sentence has <strong>bold text</strong> and some
<em>italics</em>. Lorem ipsum dolor sit amet, consectetur adipiscing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
</p>
<p>This sentence has <a href="#">a link</a>.</p>
<p>
Also, we can have a <sup>superscript</sup> and a
<sub>subscript</sub> in here as well.
</p>
<p>
Then lastly we can have some <small>small text</small> in this
sentence.
</p>
<h3>Heading 3</h3>
<blockquote>
<p>This is a blockquote.</p>
<p>And it has two sentences.</p>
</blockquote>
<h4>Heading 4</h4>
<p>Here is a bulleted list:</p>
<ul>
<li>This is one bulleted item</li>
<li>
This bullet has a nested list
<ul>
<li>This is a nested item</li>
</ul>
</li>
<li>And finally, this is the last item</li>
</ul>
<p>And here is a horizontal rule:</p>
<hr />
<p>Yeah, that's a cool line.</p>
<h5>Heading 5</h5>
<p>Here is a numbered list:</p>
<ol>
<li>This is item number one</li>
<li>
This item has a nested list
<ol>
<li>This is a nested item</li>
<li>Here is the second nested item</li>
</ol>
</li>
<li>And finally, this is the last item</li>
</ol>
<p>More nested list examples:</p>
<ul>
<li>
List item
<ol>
<li>Nested list item</li>
<li>Nested list item</li>
<li>Nested list item</li>
</ol>
</li>
<li>
List item
<ul>
<li>Nested list item</li>
<li>Nested list item</li>
<li>Nested list item</li>
</ul>
</li>
<li>List item</li>
</ul>
<ol>
<li>
List item
<ol>
<li>Nested list item</li>
<li>Nested list item</li>
<li>Nested list item</li>
</ol>
</li>
<li>
List item
<ul>
<li>Nested list item</li>
<li>Nested list item</li>
<li>Nested list item</li>
</ul>
</li>
<li>List item</li>
</ol>
<p>Lastly, here is a cool "summary and details" element:</p>
<details>
<summary>Open this sucka up to see what's inside</summary>
<p>Hey oh! Hehe that was fun!</p>
</details>
</article>
<section>
<h2>Table</h2>
<p>Here is a table:</p>
<table>
<thead>
<tr>
<th>Table header</th>
<th>Second column</th>
</tr>
</thead>
<tbody>
<tr>
<td>This is a cell</td>
<td>And another one</td>
</tr>
<tr>
<td>Second row, first column</td>
<td>Last cell</td>
</tr>
</tbody>
</table>
<h2>Media</h2>
<p>Sometimes you need an image:</p>
<img src="https://placehold.co/600x400" alt="placeholder image" />
<p>And you can include an SVG too:</p>
<svg
width="48"
height="48"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
>
<ellipse cx="24" cy="24" fill="#00F" rx="20" ry="20" />
</svg>
<p>But isn't it so cool that we can have audio on the internet too?!</p>
<audio
src="https://assets.mixkit.co/active_storage/sfx/212/212-preview.mp3"
type="audio/mp3"
controls
></audio>
<h2>Code</h2>
<p>
Sometimes you can have <code>inline code</code> and sometimes you have
a block:
</p>
<pre><code>def say_hello():
print("hello")</code></pre>
<h2>Forms</h2>
<p>Next, let's check out some form inputs and buttons.</p>
<fieldset>
<legend>Legend</legend>
<label for="cheese">
Text input
<input
type="text"
name="cheese"
id="cheese"
placeholder="Text input"
/>
</label>
<label for="pasta">
Text area
<textarea
name="pasta"
id="pasta"
rows="5"
placeholder="Text area"
></textarea>
</label>
<label for="garlic">
<input type="checkbox" id="garlic" name="garlic" checked />
Checkbox
</label>
<label for="sauce">
Selection
<select name="sauce" id="sauce">
<option value="marinara">Select</option>
<option value="alfredo">Options</option>
<option value="pesto">Menu</option>
</select>
</label>
<button type="button">Submit</button>
</fieldset>
</section>
<article>
<h2>Colors</h2>
<p>Here are some fun colors:</p>
<ul>
<li><span class="blue">blue</span></li>
<li><span class="pink">pink</span></li>
<li><span class="green">green</span></li>
<li><span class="yellow">yellow</span></li>
<li><span class="purple">purple</span></li>
<li><span class="red">red</span></li>
<li><span class="orange">orange</span></li>
</ul>
</article>
</main>
</body>
</html>