-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
403 lines (330 loc) · 12.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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!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>HTML CheatSheet By DevRathore</title>
<link rel="stylesheet" href="./sass/main.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Potta+One&family=Roboto:wght@100&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="Logo/favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="Logo/favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="Logo/favicon_io/favicon-16x16.png">
<link rel="manifest" href="Logo/favicon_io/site.webmanifest">
<script src="prism.js"></script>
<link rel="stylesheet" href="prism.css">
</head>
<body>
<nav>
<span class="logo"><img src="Logo/copy.png" alt=""></span>
<div class="content center">
This HTML CheatSheet Is For You!
</div>
</nav>
<div class="container">
<ol>
<li>HTML BoilerPlate : This is the Basic HTML BoilerPlate Code
<pre class="language-html"><code><!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>Document</title>
</head>
<body>
</body>
</html></code></pre>
</li>
<br>
<li>Heading <br><br>
There are six headings available in HTML, H1 is the largest among all, and H6 is the smallest. <br><br>
<h1> Tag
<pre class="language-html"><code>
<h1>Heading 1</h1>
</code></pre>
</li>
<br>
<li><h2> Tag
<pre class="language-html"><code>
<h2>Heading 2</h2>
</code></pre>
</li>
<br>
<li><h3> Tag
<pre class="language-html"><code>
<h3>Heading 3</h3>
</code></pre>
</li>
<br>
<li><h4> Tag
<pre class="language-html"><code>
<h4>Heading 4</h4>
</code></pre>
</li>
<br>
<li><h5> Tag
<pre class="language-html"><code>
<h5>Heading 5</h5>
</code></pre>
</li>
<br>
<li><h6> Tag
<pre class="language-html"><code>
<h6>Heading 6</h6>
</code></pre>
</li>
<br>
<li>Container <br><br>
Container tags are the tags that contain some data such as text, image, etc. There are several container tags in HTML.<br><br><div> Tag <br><br>
<div> tag or division tag is used to make blocks or divisions in the document.<br>
<pre class="language-html"><code>
<div> This is div block </div>
</code></pre>
</li>
<br>
<li><span> Tag <br><br>
span is a container for inline content <pre class="language-html"><code>
<span>This is span block</span>
</code></pre>
</li>
<br>
<li><p> Tag <br><br>
paragraph<pre class="language-html"><code>
<p>This is a paragraph</p>
</code></pre>
</li>
<br>
<li><pre> Tag <br><br>
<pre> tag represents pre-formed text<pre class="language-html"><code>
<pre>Hello World</pre>
</code></pre>
</li>
<br>
<li><code> Tag <br><br>
code tag is used to represent source codes<pre class="language-html"><code>
<code>import python</code>
</code></pre>
</li>
<br>
<li>Text Formating <br><br>
Text formatting tags are used to format text data of HTML documents. You can do certain things like creating italic, bold, strong text to make your document look more attractive and understandable. <br><br>
<b> tag <br>
<pre class="language-html"><code>
<b>I'm bold text</b>
</code></pre>
</li>
<br>
<li><strong> tag
<pre class="language-html"><code>
<strong>I'm important text</strong>
</code></pre>
</li>
<br>
<li><i> tag
<pre class="language-html"><code>
<i>I'm italic text</i>
</code></pre>
</li>
<br>
<li><em> tag
<pre class="language-html"><code>
<em>Emphasized text</em>
</code></pre>
</li>
<br>
<li><sub> tag
<pre class="language-html"><code>
<sub>subscript</sub>
</code></pre>
</li>
<br>
<li><sup> tag
<pre class="language-html"><code>
<sup>I'm important text</sup>
</code></pre>
</li>
<br>
<li>Lists <br><br>
Lists can be either numerical, alphabetic, bullet, or other symbols. You can specify list type and list items in HTML for the clean document<br><br>
<ol> tag <br><br>
Ordered list starts with <ol> tag and each list items starts with <li> tag
<pre class="language-html"><code>
<ol>
<li>Data 1</li>
<li>Data 2</li>
<li>Data 3</li>
</ol>
</code></pre>
</li>
<br>
<li><ul> tag
<pre class="language-html"><code>
<ul>
<li>Your Data</li>
<li>Your Data</li>
<li>Your Data</li>
</ul>
</code></pre>
</li>
<br>
<li>Media<br><br>
Media is anything that is present in digital form such as image, video, audio, etc.<br><br>
<audio> tag <br><br>
It is used to embed sound content in the document.
<pre class="language-html"><code>
<audio control>
<source src="demo.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</code></pre>
</li>
<br>
<li><img> tag <br><br>
It is used to embed or import image in a webpage.
<pre class="language-html"><code>
<img src="Source_of_image" alt="Alternative text">
</code></pre>
</li>
<br>
<li><video> tag <br><br>
It is used to embed video in the webpage
<pre class="language-html"><code>
<video width="400" height="320" control>
<source src="demo_move.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</code></pre>
</li>
<br>
<li>Table <br><br>
A table is a collection of rows and columns. It is used to represent data in tabular form. <br><br>
Table Structure
<pre class="language-html"><code>
<table>
<caption>Demo Table</caption>
<thead>
<tr>
<th>Column1</th>
<th colspan="2">Column2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data1</td>
<td>Data2</td>
<td>Data3</td>
</tr>
<tr>
<td>Data1</td>
<td>Data2</td>
<td>Data3</td>
</tr>
</tbody>
<tfoot>
<tr>
<td> </td>
<td>Data</td>
<td>Data</td>
</tr>
</tfoot>
</table>
</code></pre>
</li>
<br>
<li>Links <br><br>
Links are clickable text that can redirect you to some other page. <br><br>
<a> tag <br><br>
<a> or anchor tag defines a hyperlink.
<pre class="language-html"><code>
<a href="https://www.futuristicVision.com/">Visit futuristicVision.com!</a>
</code></pre>
</li>
<br>
<li>Form <br><br>
Sample Form <br><br>
Form is used to collect user's input, generally user's data is sent to server for further processing.
<pre class="language-html"><code>
<form action="/action.php" method="post">
Name: <input type="text" name="name" id="name" /> <br />
Age: <input max="90" min="1" name="age" step="1" type="number" value="18" />
<select name="gender">
<option selected="selected" value="male">Male</option>
<option value="female">Female</option>
</select><br />
<input checked="checked" name="newsletter" type="radio" value="daily" /> Daily
<input type="radio" value="weekly" />weekly <br />
<textarea name="comments" cols="20" rows="5">Comments</textarea><br />
<label><input type="checkbox" name="terms" value="tandc">Accept terms</label>
<input type="submit" value="submit" />
</form>
</code></pre>
</li>
<br>
<li>Characters & Symbols <br><br>
Some symbols are not directly present on the keyboard, but there are some ways to use them in HTML documents. We can display them either by entity name, decimal, or hexadecimal value. <br><br>
Copyright Symbol (©)
<pre class="language-html"><code>
&copy;
</code></pre>
</li>
<br>
<li>Less than (<)
<pre class="language-html"><code>
&lt;
</code></pre>
</li>
<br>
<li>Greater than (>)
<pre class="language-html"><code>
&gt;
</code></pre>
</li>
<br>
<li>Ampersand (&)
<pre class="language-html"><code>
&amp;
</code></pre>
</li>
<br>
<li>Dollar ($)
<pre class="language-html"><code>
&dollar;
</code></pre>
</li>
<br>
<li>Random <br><br>
Elon Musk <br><br>
Elon Reeve Musk FRS is an entrepreneur and business magnate. He is the found <br><br>
Semantic Elements <br><br>
Semantic elements are those element that are self describable, i.e., form their name itself, you can understand their meaning. <br><br>
<section> tag <br><br>
It defines a section in the document
<pre class="language-html"><code>
<section>This is a section<section>
</code></pre>
</li>
<br>
<li><article> <br><br>
It represents self-contained content
<pre class="language-html"><code>
<article>Enter your data here</article>
</code></pre>
</li>
<br>
<li><aside> tag <br><br>
It is used to place content in the sidebar
<pre class="language-html"><code>
<aside>Your data</aside>
</code></pre>
</li>
</ol>
</div>
<footer>
Challenge by <a href="https://www.frontendmentor.io/profile/GitHub-dev12345" target="_blank">Frontend Mentor</a>
Coded by <a href="https://github.com/GitHub-dev12345" target="_blank">Dev Rathore</a>.
</footer>
</body>
</html>