Add comments and styling enhancements to number guessing game

This commit is contained in:
vista-man
2025-01-27 20:22:56 +01:00
parent 117ed9636a
commit 05e773e405
3 changed files with 25 additions and 2 deletions

View File

@@ -8,10 +8,15 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Titel van de pagina -->
<h1>Raad het getal</h1>
<!-- Instructies voor de gebruiker -->
<p>Voer een getal in tussen 1 en 100:</p>
<!-- Invoerveld voor de gok van de gebruiker -->
<input type="number" id="guessInput">
<!-- Knop om de gok te controleren -->
<button onclick="checkGuess()">Gok</button>
<!-- Paragraaf om het resultaat weer te geven -->
<p id="result"></p>
</body>
</html>