-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpractice.html
236 lines (195 loc) · 8.17 KB
/
practice.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Niurca's Website</title>
<link rel="icon" type="gif/x-icon" href="https://media.giphy.com/media/kZqbBT64ECtjy/giphy.gif">
</head>
<body style="background-color:powderblue;">
<!-- this previous statement makes the background color be powderblue -->
<p>
<h1 style="color:green;">
This is a paragraph with a green heading 1
</h1>
</p>
<p style="color:teal;">
this is a sentence in a teal paragraph
<h6>
This is a paragraph with heading 6
</h6>
<a href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ">Click me! I'm a website</a>
</p>
<p>
This is an image:
<br>
<img src="WIN_20210506_21_06_18_Pro.jpg" alt="siblings" width="180" height="130">
</p>
<p style="color:coral;" title="I'm a tooltip">Hover over me.</p>
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>
<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr>
<p>This is<br>a paragraph<br>with line breaks.</p>
<pre>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</pre>
<!-- pre tag helps to make text appear as typed within html file
but with a specific font -->
<h1 style="background-color:blue;">This is a heading with a blue background</h1>
<p style="background-color:tomato;">This is a paragraph with a red background</p>
<h3 style="font-family:verdana;">This is a heading in verdana</h3>
<p style="font-family:courier;">This is a paragraph in courier</p>
<p>
<a href="#C4">Jump to Chapter 4</a>
</p>
<p style="font-size:160%;">This is a paragraph in font size 160%</p>
<p style="text-align:center;">Centered paragraph.</p>
<p>
<p><b>This text is bold</b></p>
<p><strong>This text is important!</strong></p>
<p><i>This text is italic</i></p>
<p><em>This text is emphasized</em></p>
<p><small>This is some smaller text.</small></p>
<p>Do not forget to buy <mark>milk</mark> today.</p>
<p>My favorite color is <del>blue</del> red.</p>
<p>My favorite color is <del>blue</del> <ins>red</ins>.</p>
<p>This is <sub>subscripted</sub> text.</p>
<p>This is <sup>superscripted</sup> text.</p>
</p>
<p>Here is a quote from WWF's website:</p>
<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 60 years, WWF has worked to help people and nature thrive.
As the world's leading conservation organization, WWF works in nearly 100 countries.
At every level, we collaborate with people around the world to develop and deliver
innovative solutions that protect communities, wildlife, and the places in which they live.
</blockquote>
<p>WWF's goal is to: <q>Build a future where people live in harmony with nature.</q></p>
<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
<address>
Written by John Doe.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
<p><cite>The Scream</cite> by Edvard Munch. Painted in 1893.</p>
<p><bdo dir="rtl">This text will be written from right to left</bdo></p>
<p><h1 style="border:2px solid Tomato;"> Hello World</h1></p>
<p><h1 style="border:2px solid DodgerBlue;">Hello World</h1></p>
<p><h1 style="border:2px solid Violet;">Hello World</h1></p>
<!-- this is RGB, HEX, and HSL-->
<h1 style="background-color:rgb(255, 99, 71);">EX0</h1>
<h1 style="background-color:#ff6347;">EX1</h1>
<h1 style="background-color:hsl(9, 100%, 64%);">EX2</h1>
<!-- RGBA and HSLA allow for a 4th argument that is transparency -->
<h1 style="background-color:rgba(255, 99, 71, 0.5);">EX3</h1>
<h1 style="background-color:hsla(9, 100%, 64%, 0.5);">EX4</h1>
<!-- This will open the website in a new tab -->
<p><a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank">Click me!</a></p>
<!-- Opens the document in the parent frame(essentially in the same page) -->
<p><a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_parent">Click me!</a></p>
<!-- Opens the document in the full body of the window(essentially in the same page) -->
<p><a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_top">Click me!</a></p>
<!-- image leads to website -->
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank">
<img src="WIN_20210506_21_06_18_Pro.jpg" alt="rickroll" style="width:100px;height:55px;">
</a>
<!-- email -->
<p><a href="mailto:[email protected]">Contact through email</a></p>
<!-- button for email(uses javascript) -->
<button onclick="document.location='mailto:[email protected]'">Click this button :D</button>
<!-- link with text when hovered over -->
<p>
<a href="https://www.w3schools.com/html/" target="_blank" title="Go to W3Schools HTML section">Visit our HTML Tutorial</a>
</p>
<!-- adding a bookmark here and lines 58-60 have the link to send to bookmark-->
<p>
<h2 id="C4">Chapter 4</h2>
</p>
<!-- <P>
<iframe src="https://giphy.com/embed/kZqbBT64ECtjy" width="480" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/hello-kitty-cute-kZqbBT64ECtjy">via GIPHY</a></p>
</P> -->
<!-- a gif as an image from the website giphy -->
<p>
<img src="https://media.giphy.com/media/kZqbBT64ECtjy/giphy.gif" alt="hello kitty">
</p>
<p><img src="https://media.giphy.com/media/kZqbBT64ECtjy/giphy.gif" alt="hello kitty" style="float:right;width:80px;height:80px;">
The image will float to the right of the text.</p>
<p><img src="https://media.giphy.com/media/kZqbBT64ECtjy/giphy.gif" alt="hello kitty" style="float:left;width:42px;height:42px;">
The image will float to the left of the text.</p>
<p>
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank">
<img src="https://media.giphy.com/media/kZqbBT64ECtjy/giphy.gif" alt="hello kitty" style="width:200px;height:200px;">
</a>
<br>
Click on hello kitty
</p>
<br>
<p>
<h4>
Click on the items in the image to learn more about them!
</h4>
<!-- <br> -->
<img src="https://www.w3schools.com/html/workplace.jpg" alt="Workplace" usemap="#workmap">
<map name="workmap">
<area shape="rect" coords="34,44,270,350" alt="Computer" href="https://en.wikipedia.org/wiki/Computer" target="_blank" onclick="func1()">
<area shape="rect" coords="290,172,333,250" alt="Phone" href="https://en.wikipedia.org/wiki/Phone" target="_blank" onclick="func2()">
<area shape="circle" coords="337,300,44" alt="Coffee" href="https://en.wikipedia.org/wiki/Coffee" target="_blank" onclick="func3()">
</map>
<script>
function func3() {
alert("You clicked the coffee cup!");
}
function func2() {
alert("You clicked the phone!");
}
function func1() {
alert("You clicked the computer!");
}
</script>
</p>
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ul style="list-style-type:circle;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ul style="list-style-type:square;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ul style="list-style-type:none;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
</body>
</html>
<!--to get this template type &! then hit tab-->