Skip to content
Branch: master
Find file Copy path
50 lines (38 sloc) 1019 Bytes
<!DOCTYPE html>
<meta charset="utf-8">
<title>Number guessing game</title>
html {
font-family: sans-serif;
body {
width: 50%;
max-width: 800px;
min-width: 480px;
margin: 0 auto;
.lastResult {
color: white;
padding: 3px;
<h1>Number guessing game</h1>
<p>We have selected a random number between 1 and 100. See if you can guess it in 10 turns or fewer. We'll tell you if your guess was too high or too low.</p>
<div class="form">
<label for="guessField">Enter a guess: </label><input type="text" id="guessField" class="guessField">
<input type="submit" value="Submit guess" class="guessSubmit">
<div class="resultParas">
<p class="guesses"></p>
<p class="lastResult"></p>
<p class="lowOrHi"></p>
// Your JavaScript goes here
You can’t perform that action at this time.