-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (43 loc) · 1.11 KB
/
index.html
File metadata and controls
46 lines (43 loc) · 1.11 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
<!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>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
}
form {
margin-bottom: 20px;
}
input[type="number"] {
padding: 5px;
margin-right: 10px;
}
button {
padding: 5px 10px;
}
.message {
margin-top: 20px;
font-size: 18px;
}
</style>
</head>
<body>
<h1>Welcome to the Number Guessing Game!</h1>
<p>Try to guess the number between 1 and 100.</p>
<form method="POST">
<input type="number" name="number" min="1" max="100" required>
<button type="submit">Submit Guess</button>
</form>
{% if message %}
<div class="message">{{ message }}</div>
{% endif %}
<div>Number of attempts: {{ attempts }}</div>
</body>
</html>