/
jspractice.html
33 lines (30 loc) · 1.51 KB
/
jspractice.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
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="jspractice.js">//
</script>
<link rel="stylesheet" href="jspractice.css" type="text/css"></link>
<title>JavaScript practice</title>
</head>
<body> <div>
<div>
<p> This is some lines to a song<br /> This <span
class="nature">is another line with a span</span>. Hover over the span to make text appear on the side.
<br /> This is another line. When you hover over this one, <span class="love">
it should hide the current text</span> and replace
it with a new jawn. <br />
This is another line with a <span class="nature">nature span</span> to ensure repeat classes won't give us error.. <br/>
This is the last line
</p>
</div>
<div id="paddingtonDiv"> This div has a lot of padding to make sure the positioning works.</div>
<div id="sidebar">
<div class="love"><p>This will
show information about love</p></div>
<div class="nature" style="visibility:visible">
<p> This will show information about nature. </p>
</div>
</div>
</div>
</body>
</html>