-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2simple-counter.html
More file actions
33 lines (27 loc) · 1014 Bytes
/
Copy path2simple-counter.html
File metadata and controls
33 lines (27 loc) · 1014 Bytes
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>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Counter</title>
<link rel="stylesheet" href="CSS/2simple-counter.css">
</head>
<body>
<!-- Main wrapper that holds everything -->
<div class="container">
<!-- Counter title displayed at the top -->
<h1>Counter</h1>
<!-- This is where the count number is displayed. Starts at 0 -->
<span id="value">0</span>
<!-- Wrapper div that holds all three buttons -->
<div>
<!-- Each button has the shared "btn" class so JS can find all of them -->
<!-- Each also has its own class so JS knows which one was clicked -->
<button class="btn decrease">Decrease</button>
<button class="btn reset">Reset</button>
<button class="btn increase">Increase</button>
</div>
</div>
<script src="JS/2simple-counter.js"></script>
</body>
</html>