-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (35 loc) · 1.34 KB
/
index.html
File metadata and controls
46 lines (35 loc) · 1.34 KB
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
<!-- Define the document type and language -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Set the character encoding to UTF-8 -->
<meta charset="UTF-8">
<!-- Ensure the page is responsive on all devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Set the title of the webpage -->
<title>Counter App</title>
<!-- Link an external CSS file for styling -->
<link rel="stylesheet" href="counter.css">
</head>
<body>
<!-- Main container for the counter app -->
<div class="counter-app">
<!-- Heading for the app -->
<h1>Counter App</h1>
<!-- Paragraph element to display the current counter value -->
<p id="counter-value">0</p>
<!-- Grouping all control buttons in a div -->
<div class="button-group">
<!-- Button to increase the counter -->
<button id="increase-btn">Increase</button>
<!-- Button to decrease the counter -->
<button id="decrease-btn">Decrease</button>
<!-- Button to reset the counter to 0 -->
<button id="reset-btn">Reset</button>
</div>
</div>
<!-- Link the external JavaScript file that contains app logic -->
<script src="counter.js"></script>
</body>
</html>
Counter html