-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml-reference.html
More file actions
320 lines (248 loc) · 8.47 KB
/
html-reference.html
File metadata and controls
320 lines (248 loc) · 8.47 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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="html-reference.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="topnav">
<a href="index.html">Home</a>
<a href="https://nmg888.github.io/Overwatch.html">Overwatch</a>
<a href="https://nmg888.github.io/TF2.html">Team Fortress 2</a>
<a href="https://nmg888.github.io/PUBG.html">PlayerUnknown's Battlegrounds</a>
<a href="https://nmg888.github.io/Super-Smash-Bros.html">Super Smash Bros</a>
<a href="https://NMG888.github.io/exercises/index.html">HTML Exercises</a>
<a href="https://NMG888.github.io/css-exercises/index.html">CSS Exercises</a>
<a class="active" href="NMG888.github.io/html-reference.html">HTML Reference Page</a>
</div>
<div class="body">
<div class="heading">
<h1>HTML elements</h1>
<div class="table">
<table>
<tr>
<th>Element Usage</th>
<th>Tag</th>
</tr>
<tr>
<td>
HTML
</td>
<td><html> ></html></td>
</tr>
<tr>
<td>Header</td>
<td><head> </head></td>
</tr>
<tr>
<td>Title</td>
<td><title> ></title></td>
</tr>
<tr>
<td>Body</td>
<td><body> </body></td>
</tr>
<tr>
<td>Headings</td>
<td><h(#)> </h(#)></td>
</tr>
<tr>
<td>Paragraph</td>
<td><p> </p></td>
</tr>
<tr>
<td>Breaks</td>
<td><br> </br></td>
</tr>
<tr>
<td>Lines</td>
<td><hr> </hr></td>
</tr>
<tr>
<td>Comments</td>
<td><!-- --></td>
</tr>
<tr>
<td>Links</td>
<td><a> </a></td>
</tr>
<tr>
<td>Images</td>
<td><img></td>
</tr>
<tr>
<td>Lists</td>
<td><ul><ol><li> </ul></ol></li></td>
</tr>
<tr>
<td>Tables</td>
<td><td><tr><th> </td></tr></th></td>
</tr>
<tr>
<td>Blocks</td>
<td><span></span></td>
</tr>
</table>
</div>
<h1>What is HTML?</h1>
<p>HTML is the standard markup language for creating websites
and is usually used in tandem with other languages used for
styling the website.</p>
<h1>HTML Element</h1>
<h2>Uses</h2>
<p>It is the top level element of an HTML page</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><html></p>
<p>end tag:</p><p></html></p>
<h2>Example:</h2>
<p><html><br>
head and body<br>
</html></p>
<a href="https://www.w3schools.com/html/html_images.asp">HTML element</a>
<h1>Head Element</h1>
<div class=heading-2>
<h2>Uses</h2>
<p>The Head element is used for the meta information of the document.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><head></p>
<p>end tag:</p><p></head></p>
<h2>Example:</h2>
<p><head><br>
<meta charset="utf-8"><br>
<meta name="viewport" content="width=device-width"><br>
</head></p>
<a href="https://www.w3schools.com/tags/tag_head.asp">Head element</a>
<h1>Title Element</h1>
<h2>Uses</h2>
<p>The title element is used to create title for the document.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><title></p>
<p>end tag:</p><p></title></p>
<h2>Example:</h2>
<p>Its the title of the page!</p>
<a href="https://www.w3schools.com/tags/tag_title.asp">Title W3schools</a>
<h1>Body Element</h1>
<h2>Uses</h2>
<p>You put most of your writing like <p> and other stuff inside the body element.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><body></p>
<p>end tag:</p><p></body></p>
<h2>Example:</h2>
<p><body><br>
Coding is cool!<br>
</body></p>
<a href="https://www.w3schools.com/tags/tag_body.asp">Headings W3schools</a>
<h1>Headings Element</h1>
<h2>Uses</h2>
<p>The headings element creates a heading, which is slightly smaller than a title.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><h(#)></p>
<p>end tag:</p><p></h(#)></p>
<h2>Example:</h2>
<h2>Coding!</h2>
<a href="https://www.w3schools.com/tags/tag_hn.asp">Headings W3schools</a>
<h1>Paragraphs Element</h1>
<h2>Uses</h2>
<p>The paragraph element is what you your writing in.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><p></p>
<p>end tag:</p><p></p></p>
<h2>Example:</h2>
<p><p><br>
Coding is Cool!<br>
</p></p>
<a href="https://www.w3schools.com/html/html_p.asp">W3 Schools paragraphs</a>
<h1>Breaks Element</h1>
<h2>Uses</h2>
<p>The breaks element allows you to put paragraph breaks in between your writing.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><br></p>
<p>end tag:</p><p></br></p>
<h2>Example:</h2>
<p>Here is a line break</p><br>
<p>Coding is cool!</p>
<a href="https://www.w3schools.com/html/html_images.asp">W3 Schools breaks</a>
<h1>Lines Element</h1>
<h2>Uses</h2>
<p>The line element literally allows you to put a line on your page.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><hr></p>
<p>end tag:</p><p></hr></p>
<h2>Example:</h2>
<hr>
<a href="https://www.w3schools.com/html/html_hr.asp">W3 Schools lines</a>
<h1>Comments Element</h1>
<h2>Uses</h2>
<p>The comments element allows you to comment out code so the machine does not read it.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><!--></p>
<p>end tag:</p><p><--></p>
<h2>Example:</h2>
<p><!--Coding is cool!--></p>
<a href="https://www.w3schools.com/html/html_comments.asp">W3 Schools comments</a>
<h1>Links Element</h1>
<h2>Uses</h2>
<p>The link element allows you to put links into your document.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><a></p>
<p>end tag:</p><p>N/A</p>
<h2>Example:</h2>
<a href="https://www.w3schools.com/html/html_links.asp">THIS IS A LINK</a>
<a href="https://www.w3schools.com/html/html_links.asp">W3schools links</a>
<h1>Image Element</h1>
<h2>Uses</h2>
<p>The image element allows you to put images on the page</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><img></p>
<p>end tag:</p><p>N/A&</p>
<h2>Example:</h2>
<img src="NMG888.github.io/images/523331-1e2qQI1490977998.jpg" style="width:3500px;height:200px;">
<a href="https://www.w3schools.com/html/html_images.asp">W3 Schools images</a>
<h1>List Element</h1>
<h2>Uses</h2>
<p>The list element allows you to put lists on your document.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><ul>,<ol>,<li></p>
<p>end tag:</p><p></ul>,</ol>,</li></p>
<h2>Example:</h2>
<p><html><br>
head and body<br>
</html></p>
<a href="https://www.w3schools.com/html/html_lists.asp">W3 Schools lists</a>
<h1>Table Element</h1>
<h2>Uses</h2>
<p>The table element allows you to create tables</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><td>,<tr>,<th></p>
<p>end tag:</p><p></td>,</tr>,</th>;</p>
<h2>Example:</h2>
<table>
<tr>
<th>Element Usage</th>
<th>Tag</th>
</tr>
<tr>
<td>
HTML
</td>
<td><html> ></html></td>
</tr>
</table>
<a href="https://www.w3schools.com/html/html_tables.asp">W3 Schools tables</a>
<h1>Block Element</h1>
<h2>Uses</h2>
<p>The <span> element is often used as a container for other HTML elements.</p><br>
<h2>Syntax</h2>
<p>start tag:</p><p><span></p>
<p>end tag:</p><p></span></p>
<h2>Example:</h2>
<span><span>Hello</span></span>
<a href="https://www.w3schools.com/html/html_span.asp">W3 Schools Blocks</a>
<a href="https://NMG888.github.io">Hope Page</a>
</div>
</div>
</div>
</body>
</html>