repl.it
HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • main.js
  • page2.html
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <p>What year was George Washington born?</p>
    <button  id="button1" onclick="addScore()" class="button">1732</button>
    <button  id="button2" onclick="wrong()" class="button">1776</button>
    <button id="button3" onclick="wrong()" class="button">1712</button>
    <p class="score"></p>
    <script src="main.js"></script>
  </body>
</html>
result
console