Skip to main content

Posts

Showing posts with the label CSS

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>     ...