-
Notifications
You must be signed in to change notification settings - Fork 0
/
three.html
28 lines (27 loc) · 1015 Bytes
/
three.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Guess a number</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="rapper">
<h1>Number Guessing Game</h1>
<p>Try and guess a random number between 1 and 100</p>
<p>You have 10 attempts to guess a correct number</p>
<form class="form">
<label for="guessfield" id="guess">Guess a number</label>
<input type="text" id="guessfield" class="guessfield">
<input type="button" id="subt" value="Submit guess" class="guessSubmit">
</form>
<div class="resultparas">
<p>Previous guesses: <span class="guesses"></span></p>
<p>Guesses Remaining: <span class="lastresult">10</span></p>
<p class="lowOrHi"></p>
</div>
</div>
<script src="number_guessing.js"></script>
</body>
</html>