This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
51 lines (48 loc) · 1.78 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
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Guess my number game">
<meta name="keywords" content="HTML, CSS, JavaScript, Game">
<!-- Links -->
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon.ico">
<link rel="stylesheet" href="./assets/style.css" />
<title>Guess My Number</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
</head>
<body>
<header role="banner">
<!-- Restart Button -->
<section>
<button type="button" class="btn again">Restart!</button>
<p class="number-range">(Between 1 and 20)</p>
</section>
<h1>Guess My Number</h1>
<!-- Hidden Number -->
<section class="secret-number">
<p class="hidden-number">?</p>
</section>
</header>
<main role="main">
<article role="contentinfo" aria-label="Number guessing game input and results" class="main-container">
<!-- Number Input -->
<section role="contentinfo" aria-label="Number guessing game input" class="left">
<input type="number" class="number-input" />
<button type="submit" class="btn submit-number">Check!</button>
</section>
<!-- Result Output -->
<section role="contentinfo" aria-label="Number guessing game results" class="right">
<h2 class="message">Start playing...</h2>
<p class="label-score">Score: <span class="score">10</span></p>
<p class="label-highscore">
Highest Score: <span class="highscore">0</span>
</p>
</section>
</article>
</main>
<script src="script.js"></script>
</body>
</html>