Advertisement
samimwebdev

player vs player project (HTML)

Jun 13th, 2022
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.88 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="utf-8" />
  5.         <meta name="viewport" content="width=device-width, initial-scale=1" />
  6.         <link rel="stylesheet"
  7.             href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.0.0-beta1/css/bootstrap.min.css" />
  8.         <title>Player vs Player Game</title>
  9.     </head>
  10.  
  11.     <body>
  12.  
  13.         <div class="container">
  14.             <h1>Let's Play Game</h1>
  15.             <h1>
  16.                 <span id="p1Score">0</span>
  17.                 to
  18.                 <span id="p2Score">0</span>
  19.             </h1>
  20.  
  21.             <p>Playing to: <span class="playingTo">0</span></p>
  22.            
  23.             <form>
  24.                 <input type="number" id="inputScore">
  25.             </form>
  26.             <br />
  27.             <button class="btn btn-primary" id="p1Btn">Player-1</button>
  28.             <button class="btn btn-primary" id="p2Btn">Player-2</button>
  29.             <button id="resetBtn" class="btn btn-primary">Reset</button>
  30.  
  31.         </div>
  32.         <script src="script2.js"></script>
  33.    
  34.     </body>
  35.  
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement