-
Notifications
You must be signed in to change notification settings - Fork 0
/
basics.html
80 lines (69 loc) · 1.98 KB
/
basics.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
<!-- HTML - Hypertext Markup Language
ctrl + / - to put in a comment -->
<!---- ! + tab BOILER PLATE -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Basics</title>
</head>
<body>
<!-- Contents of the webpage goes here -->
<!-- Text formatting -->
<!-- Headings -->
<h1 id="top"> This is heading 1</h1>
<!-- most important, don't use other header without the h1 -->
<!-- usually we only use 1 h1 per page. for the banner or title -->
<h2> This is heading 2</h2>
<h3> This is heading 3</h3>
<h4> This is heading 4</h4>
<h5> This is heading 5</h5>
<h6> This is heading 6</h6>
<p>This is my sentence. <br/>
This is my 2nd sentence. <br/>
This is my 3rd sentence. <br/>
This is my paragraph.<br/>
</p>
<!-- forward slash indicates that it is a
self closing tag, it will function without it but
it helps the codes become clearer -->
<hr/>
<!-- horizontal line, to separate 2 topics -->
<p>This is a different topic</p> <br/>
<!-- Stylings in HTML -->
<p>This is an <strong>important</strong> text</p>
<p>This is an <em>emphasized</em> text.</p>
<p>This text is <u>underlined</u></p>
<p>This text is <s>invalid</s></p>
<p>H<sub>2</sub>O is the chemical formula for water</p>
<p>2<sup>2</sup>=4</p>
<hr/>
<!-- List -->
<!-- ordered list -->
<ol>
<li>apple</li>
<li>banana</li>
<li>strawberry</li>
</ol>
<!-- unordered list -->
<ul>
<li>computer</li>
<li>laptop</li>
<li>smartphone</li>
</ul>
<!-- Definition / Description List -->
<dl>
<!-- definition term (dt) -->
<dt><em><strong>HTML</strong></em></dt>
<!-- definition description -->
<dd>Hypertext Markup Language</dd>
</dl>
<hr/>
<!-- Links and Anchors -->
<!-- target - to open new tab if they click the link -->
<a href="https://google.com" target="_blank">Visit Google</a>
<a href="#top">Back to top</a>
<!-- class -->
</body>
</html>