-
Notifications
You must be signed in to change notification settings - Fork 1
/
lesson7.html
70 lines (35 loc) · 1.65 KB
/
lesson7.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
<!DOCTYPE html>
<html>
<head>
<title>Beginner JavaScript</title>
</head>
<body>
<script src="allPages.js"></script>
<style>
h1 {
text-align:center;
}
html, body {
margin:0;
padding:0;
}
p {
margin:8px;
}
</style>
<p>The first section demonstrated some basic concepts of JavaScript</p>
<p>However JavaScript is rarely used just to pop-up little alert boxes. It is used to dynamically create content, respond to user interaction, order lists, and more.</p>
<p>For example, <a href="https://rivers.run" target="_blank">rivers.run</a> is a website that uses JavaScript for searching, sorting, drawing graphs, fetching the latest river heights, expanding the drop-downs when users click, and caching itself for offline use. </p>
<p>The next section will teach you how to use JavaScript to create HTML elements, delete HTML elements, style HTML elements, and modify the content of HTML elements - All using JavaScript</p>
<div style="text-align:center;">
<button style="display:inline-block;margin:auto;padding:6px;background-color:lightsalmon;"onclick="window.location = self.previousLesson">Go Back</button>
<button style="display:inline-block;margin:auto;padding:6px;background-color:lightgreen;"onclick="window.location = self.nextLesson">Continue</button>
</div>
<style>
html, body {
width:100%;
height:100%;
}
</style>
</body>
</html>