repl.it
HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script src="script.js"></script>
  </head>
  <body>
    <div>
      <form name="from">
      <p> Guess the number from 1 to 100!</p>
      <button type="button" onclick="anoNumber();reset();">New Number Pls</button>
      <br>
      <input type="number" id="hula" name="hula" placeholder="Your Guess" min="1" max="100">
      <br>
      <button type="button" id="guessMo" onclick="hulaNumber(hula.value)">Guess!</button>
      <p id="what">Hmm</p>
      <p id="guess">Guesses: 0</p>
      <p id="num"></p>
      </form>
    </div>
  </body>
</html>
result
console