-
Notifications
You must be signed in to change notification settings - Fork 4k
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (29 loc) · 1.03 KB
/
index.html
File metadata and controls
30 lines (29 loc) · 1.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Counter</title>
<!-- styles -->
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main>
<div class="container">
<h1>Counter</h1>
<div class="top-row">
<p class="subtitle">A small, delightful counter with accessible controls</p>
<button id="theme-toggle" class="theme-toggle" aria-pressed="false" aria-label="Toggle color palette">Theme</button>
</div>
<span id="value" aria-live="polite">0</span>
<div class="button-container" role="group" aria-label="counter controls">
<button class="btn decrease" aria-label="decrease">-</button>
<button class="btn reset" aria-label="reset">Reset</button>
<button class="btn increase" aria-label="increase">+</button>
</div>
</div>
</main>
<!-- javascript -->
<script src="app.js"></script>
</body>
</html>