Skip to main content

Posts

Showing posts from May, 2023

Followers

"Tic-Tac-Toe" game using HTML, CSS, and JavaScript:-

 Tic-Tac-Toe: Design a simple version of the classic Tic-Tac-Toe game. Players take turns marking X or O on a grid, and the first to get three in a row wins. Here's a simple implementation of the Tic-Tac-Toe game using HTML, CSS, and JavaScript:- HTML: <!DOCTYPE html> <html> <head>     <title>Tic-Tac-Toe</title>     <link rel="stylesheet" type="text/css" href="style.css"> </head> <body>     <h1>Tic-Tac-Toe</h1>     <div class="board">         <div class="cell" onclick="makeMove(0)"></div>         <div class="cell" onclick="makeMove(1)"></div>         <div class="cell" onclick="makeMove(2)"></div>         <div class="cell" onclick="makeMove(3)"></div>         <div class="cell" onclick="makeMove(4)"></div>         <div

"Guess the Number" game in HTML, CSS, and JavaScript:-

Guess the Number: Create a game where the user tries to guess a randomly generated number within a certain range. The game provides feedback on whether the guess is too high or too low. Certainly! Here's a simple implementation of the "Guess the Number" game in HTML, CSS, and JavaScript: HTML: < !DOCTYPE html> <html> <head>     <title>Guess the Number</title>     <link rel="stylesheet" type="text/css" href="style.css"> </head> <body>     <h1>Guess the Number</h1>     <p>Guess a number between 1 and 100:</p>     <input type="number" id="guessInput">     <button onclick="checkGuess()">Guess</button>     <p id="message"></p>          <script src="script.js"></script> </body> </html> -------------------------------------------------------------------------------------------