-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreference.html
More file actions
306 lines (293 loc) · 13.7 KB
/
reference.html
File metadata and controls
306 lines (293 loc) · 13.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>OpenCode Web Development Fundamentals - HTML</title>
<meta name="generator" content="BBEdit 10.5" />
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Basic HTML Document Reference for Web Development Fundamentals</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="reference.html">HTML Reference</a></li>
<li><a href="css.html">Styling Reference</a></li>
<li><a href="resources.html">Resources</a></li>
</ul>
</nav>
</header>
<main>
<section>
<h2>Basic Document Structure</h2>
<article>
<pre>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Document Title</title>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<header>
<h1> <-- logo/main page header goes here --></h1>
<nav>
<-- nav goes here -->
</nav>
</header>
<main>
<-- content goes here -->
</main>
<footer>
<-- footer content goes here -->
</footer>
</body>
</html>
</pre>
</article>
</section>
<h2>HTML Reference docs</h2>
<ul>
<li><a href="https://www.w3.org/community/webed/wiki/HTML/Elements" target="_blank">W3.org HTML Elements</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element" target="_blank">MDN HTML Element Reference</a></li>
<li><a href="https://dev.w3.org/html5/html-author/charref" target="_blank">Character Entity Reference</a></li>
</ul>
<section>
</section>
<section>
<h2>Basic tags to know</h2>
<article>
<h3>Headings <h1> - <h6></h3>
<p>Section Headings h1 - h6. Six levels of document headings <h1> is the most important. Briefly describes the topic of the section it introduces.
<a href="https://www.w3.org/community/webed/wiki/HTML/Elements/h1,_h2,_h3,_h4,_h5,_and_h6" target="_blank">W3C - Headings</a>
|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements" target="_blank">MDN - Heading Elements</a>
</p>
<pre>
<h1>Hello World</h1> <h1>Hello World</h1>
<h2>Hello World</h2> <h2>Hello World</h2>
<h3>Hello World</h3> <h2>Hello World</h3>
<h4>Hello World</h4> <h4>Hello World</h4>
<h5>Hello World</h5> <h5>Hello World</h5>
<h6>Hello World</h6> <h6>Hello World</h6>
</pre>
</article>
<article>
<h3>Paragraph <p><-- content goes here --></p></h3>
<p>Paragraph as block of text separated from other blocks. <a href="https://www.w3.org/community/webed/wiki/HTML/Elements/p" target="_blank">W3C - Paragraph|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p" target="_blank">MDN - Paragraph</a></p></p>
<pre>
<p>
Lorem ipsum dolor sit amet, labores postulant no duo. Dicat option ei mel,
labore volumus accusam id pri. Has et vidit expetenda.
Cu mutat omnesque conclusionemque vis, ad nominavi detraxit cum.
Veniam recteque ei nam, ei iisque denique detracto duo
</p>
<p>
Sint intellegat adversarium ea eum, ei vix simul laoreet convenire. Vel at nemore meliore detraxit,
illum praesent no sea, ea per mollis omnesque interesset. Omnis utinam ea vis. Eos delicata
intellegat no, in quem solum civibus eos.
Vim partem temporibus in, an usu eripuit deserunt consulatu,
vim in propriae expetenda. Eam dicam tritani
liberavisse ne, suas eleifend eu vim, ne sint facete vivendo usu. Quo ludus vocibus albucius eu.
</p>
</pre>
<p>Lorem ipsum dolor sit amet, labores postulant no duo. Dicat option ei mel, labore volumus accusam id pri. Has et vidit expetenda. Cu mutat omnesque conclusionemque vis, ad nominavi detraxit cum. Veniam recteque ei nam, ei iisque denique detracto duo</p>
<p>Sint intellegat adversarium ea eum, ei vix simul laoreet convenire. Vel at nemore meliore detraxit, illum praesent no sea, ea per mollis omnesque interesset. Omnis utinam ea vis. Eos delicata intellegat no, in quem solum civibus eos. Vim partem temporibus in, an usu eripuit deserunt consulatu, vim in propriae expetenda. Eam dicam tritani liberavisse ne, suas eleifend eu vim, ne sint facete vivendo usu. Quo ludus vocibus albucius eu.</p>
</article>
<article>
<h3>Div</h3>
<p>Generic container used to group elements.<a href="https://www.w3.org/community/webed/wiki/HTML/Elements/div" target="_blank">W3C - Div</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div" target="_blank">MDN - div</a></p>
<pre>
<div>
<p>
Lorem ipsum dolor sit amet, ut convallis pede ut in convallis ante, aenean nibh
pede malesuada sit sit, quam sit at congue, elit at tincidunt, nibh risus integer at
molestie parturient nec. Quis id rutrum lacus cras. Pellentesque at
arcu. Sem quam montes ultricies, mi placerat, id eleifend amet laoreet id.
</p>
<p>
Tincidunt a lobortis integer rutrum viverra, risus suscipit
proin nunc, in consequat, taciti nibh id ac. Ultrices anim, ultricies in
quam id fusce. Facilisis quis, eget gravida posuere at, orci lorem
integer velit vitae dolor hac.
</p>
</div>
</pre>
<div>
<p>
Lorem ipsum dolor sit amet, ut convallis pede ut in convallis ante, aenean nibh
pede malesuada sit sit, quam sit at congue, elit at tincidunt, nibh risus integer at
molestie parturient nec. Quis id rutrum lacus cras. Pellentesque at
arcu. Sem quam montes ultricies, mi placerat, id eleifend amet laoreet id.
</p>
<p>
Tincidunt a lobortis integer rutrum viverra, risus suscipit
proin nunc, in consequat, taciti nibh id ac. Ultrices anim, ultricies in
quam id fusce. Facilisis quis, eget gravida posuere at, orci lorem
integer velit vitae dolor hac.
</p>
</div>
</article>
<article>
<h3>Lists</h3>
<p>
An unordered list of items.<a href="https://www.w3.org/community/webed/wiki/HTML/Elements/ul" target="_blank">W3C - Lists</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul" target="_blank">MDN - List item</a>
</p>
<pre>
<ul>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
<li>Item4</li>
</ul>
</pre>
<ul>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
<li>Item4</li>
</ul>
</article>
<article>
<h3>Address</h3>
<p>Supplies contact information for its nearest <article> or <body> ancestor.<a href="https://www.w3.org/community/webed/wiki/HTML/Elements/address" target="_blank">W3C - Address</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address" target="_blank">MDN - Address</a></p>
<pre>
<address>
name<br>
street<br>
city, state, zip<br>
</address>
</pre>
<address>
name<br>
street<br>
city, state, zip<br>
</address>
</article>
<article>
<h3>Line break</h3>
<p>Produces a line break in text <a href="https://www.w3.org/community/webed/wiki/HTML/Elements/br" target="_blank">W3C - Line Break</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br" target="_blank">MDN - Break</a></p>
<pre>
<p>Accumsan id quam fusce justo lacus, <br>ipsum eleifend, ultrices<br> fusce mauris lectus,
et sed, massa eu donec lacinia ut quisque.</p>
</pre>
<p>Accumsan id quam fusce justo lacus, <br>ipsum eleifend, ultrices<br> fusce mauris lectus,
et sed, massa eu donec lacinia ut quisque.</p>
</article>
<article>
<h3>Image</h3>
<p>An image in the document. <a href="https://www.w3.org/community/webed/wiki/HTML/Elements/img" target="_blank">W3C - Image</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img" target="_blank">MDN - Image</a></p>
<pre>
<img src="http://www.ibiblio.org/wm/paint/auth/bosch/stone.jpg" alt="bosch" target="_blank"><br>
</pre>
<img src="http://www.ibiblio.org/wm/paint/auth/bosch/stone.jpg" alt="bosch">
<pre>
<a href="http://www.ibiblio.org/wm/paint/auth/bosch/paradise/" target="_blank" target="_blank">
<img src="http://www.ibiblio.org/wm/paint/auth/bosch/paradise/paradise.jpg" alt="paradise">
</a>
</pre>
<a href="http://www.ibiblio.org/wm/paint/auth/bosch/paradise/" target="_blank">
<img src="http://www.ibiblio.org/wm/paint/auth/bosch/paradise/paradise.jpg" alt="Paradise">
</a>
</article>
</section>
<section>
<h2>Forms</h2>
<article>
<h3>Form</h3>
<p>Document section that contains interactive controls to submit information to a web server. <a href="https://www.w3.org/community/webed/wiki/HTML/Elements/form" target="_blank">W3C - Form</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form" target="_blank">MDN - Form</a></p>
<pre>
<form action="http://" method="post" target="_blank">
<label for="name">Name</label><input type="text" name="name">
<br>
<input type="submit" value="Submit"><input type="reset" value="Reset">
</form>
</pre>
<form>
<label for="name">Name</label><input type="text" name="name">
<br>
<input type="submit" value="Submit"><input type="reset" value="Reset">
</form>
</article>
<article>
<h3>Input</h3>
<p>Used to create interactive controls for web-based forms in order to accept data from the user.<a href="https://www.w3.org/community/webed/wiki/HTML/Elements/input" target="_blank">W3C - input</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input" target="_blank">MDN - input</a></p>
<pre>
<label for="first">First Name</label><input type="text" name="first" id="first" value="" placeholder="First Name">
<label for="email">Email</label><input type="email" name="email" id="email" placeholder="name@server.com">
<label for="password">Password</label><input type="password" value="password" name="password" id="password">
<label><input type="checkbox" name="checkbox" id="checkbox" checked>Checkbox</label>
<label><input type="radio" name="radio" id="radio">Radio</label>
<input type="submit" name="submit" id="submit">
<input type="reset" name="reset" id="reset">
</pre>
<label for="first">First Name</label> <input type="text" name="first" id="first" value="" placeholder="First Name"><br>
<label for="email">Email</label> <input type="email" name="email" id="email" placeholder="name@server.com"><br>
<label for="password">Password</label> <input type="password" value="password" name="password" id="password"><br>
<label><input type="checkbox" name="checkbox" id="checkbox" checked>Checkbox</label><br>
<label><input type="radio" name="radio" id="radio">Radio</label><br>
<input type="submit" name="submit" value="Submit" id="submit"><br>
<input type="reset" name="reset" id="reset">
</article>
<article>
<h3>Select</h3>
<p>Control for selecting amongst a set of options. -
<a href="https://www.w3.org/community/webed/wiki/HTML/Elements/select" target="_blank">W3C - Select</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select" target="_blank">MDN - Select</a>
</p>
<pre>
<!-- The second value will be selected initially -->
<select name="select">
<option value="value1">Value 1</option>
<option value="value2" selected>Value 2</option>
<option value="value3">Value 3</option>
</select>
</pre>
<!-- The second value will be selected initially -->
<select name="select">
<option value="value1">Value 1</option>
<option value="value2" selected>Value 2</option>
<option value="value3">Value 3</option>
</select>
</article>
<article>
<h3>TextArea</h3>
<p>Represents a multi-line plain-text editing control.<a href="https://www.w3.org/community/webed/wiki/HTML/Elements/textarea" target="_blank">W3C - TextArea</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea" target="_blank">MDN - TextArea</a></p>
<pre>
<textarea name="textarea" rows="10" cols="50">Write something here</textarea>
</pre>
<textarea name="textarea" rows="10" cols="50">Write something here</textarea>
</article>
<article>
<h3>Label</h3>
<p>Represents a caption in a user interface. <a href="https://www.w3.org/community/webed/wiki/HTML/Elements/label" target="_blank">W3C - Label</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label" target="_blank">MDN - Label</a></p>
<pre>
<input type="text" id="first" name="First"> <label for="first">First Name</label>
<label><input type="checkbox" name="lost"> Lost</label>
</pre>
<input type="text" id="first_name" name="first_name"> <label for="first_name">First Name</label><br>
<label><input type="checkbox" name="lost"> Lost</label>
</article>
</section>
<section>
<h2>Misc. Resources</h2>
<article>
<h3>Images</h3>
<ul>
<li>Public Domain Image List - <a href="https://en.wikipedia.org/wiki/Wikipedia:Public_domain_image_resources#Art" target="_blank">Wikipedia Public Domain Resources</a></li>
</ul>
</article>
</section>
<!--
<h1>References</h1>
<a href="https://dev.w3.org/html5/html-author/charref">Character References</a>
<a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a>
<a href="http://www.w3.org/TR/html5/">W3 - HTML5</a>
<a href="http://alistapart.com">A List Apart</a>
<a href="https://www.smashingmagazine.com">Smashing Magazine</a>
-->
</main>
<footer>
</footer>
</body>
</html>