Skip to content

Instantly share code, notes, and snippets.

@coltonoscopy
Created January 20, 2019 02:58
Show Gist options
  • Save coltonoscopy/7cdfefd92b9c418469b269a53ba0ed2f to your computer and use it in GitHub Desktop.
Save coltonoscopy/7cdfefd92b9c418469b269a53ba0ed2f to your computer and use it in GitHub Desktop.
Colton's implementation of Tic Tac Toe in HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Tic Tac Toe</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<style>
body {
text-align: center;
}
td {
width: 100px;
height: 100px;
}
#top-row td, #middle-row td {
border-bottom: 1px solid black;
}
td:nth-of-type(2) {
border-left: 1px solid black;
border-right: 1px solid black;
}
</style>
</head>
<body>
<h1>Tic Tac Toe</h1>
<div>
<table align="center">
<tbody>
<tr id="top-row">
<td></td><td></td><td></td>
</tr>
<tr id="middle-row">
<td></td><td></td><td></td>
</tr>
<tr id="bottom-row">
<td></td><td></td><td></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment