-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (36 loc) · 1.58 KB
/
index.html
File metadata and controls
48 lines (36 loc) · 1.58 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
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Number Guessing Game</title>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
</head>
<body>
<center>
<h1>Number Guessing Game</h1><hr>
<h3>Please select the difficulty:</h3>
<input type="radio" id="easyDifficulty" name="difficultyRadio" class="radio">
<label for="easyDifficulty">Easy</label>
<input type="radio" id="midDifficulty" name="difficultyRadio" class="radio">
<label for="midDifficulty">Medium</label>
<input type="radio" id="hardDifficulty" name="difficultyRadio" class="radio">
<label for="hardDifficulty">Hard</label>
<br><br>
<button onclick="selectDifficulty()">Start</button><hr>
<br><br>
<div>
<label for="enterGuess">Guess a number: </label>
<input type="number" id="enterGuess" disabled>
<p id="displayMax">Max No.: </p>
<p id="displayMin">Min No.: </p>
<p id="displayGuess">Number of guesses left: </p>
<button onclick="checkTheGuess()">Submit</button><hr>
</div>
</center>
<script src="index.js"></script>
</body>
</html>