-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (48 loc) · 1.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JavaScript Tutorial</title>
<link rel="stylesheet" href="./styles.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
</head>
<body>
<h1>JavaScript Tutorial</h1>
<form action="submit" id="myform">
<label for="amount">Enter amount</label>
<input type="text" name="amount" id="amount" />
<button>Submit</button>
</form>
<div id="events">
<h2>Eventing happens here</h2>
<p id="woohoo">woohoo an event happened - where'd it go?</p>
<button id="dont-touch" class="btn">
Don't <strong>touch me</strong>
</button>
<button id="btn-play" class="btn">Ouch</button>
<!-- This is inline javascript which works, but DON'T DO IT, DAVE -->
<p
class="blue"
onclick="this.classList.toggle('blue');this.classList.toggle('red')"
>
Old style
</p>
</div>
<div id="itemDiv">
<div id="headers">
<h2 id="head1" class="red">First heading</h2>
<h2 id="head2">Second heading</h2>
<h2 id="head3">Third heading</h2>
<h3>Yet more garbage</h3>
</div>
<ul id="mylist">
<li class="first" id="special">I am first</li>
<li>I have no attributes</li>
</ul>
</div>
<div id="someDiv" class="random">I'm just a div looking for CSS</div>
<a href="#" id="link">random link</a>
<script src="./js/app.js"></script>
</body>
</html>