html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<style>
#myTable {
border-collapse: collapse;
}
#myTable td {
width: 50px;
height: 50px;
border: 1px solid black;
text-align: center;
vertical-align: middle;
font-size: 24px;
font-weight: bold;
}
</style>
</head>
<body>
<table align="center" id="myTable">
<tr>
<td id="cell-0-0"></td>
<td id="cell-0-1"></td>
<td id="cell-0-2"></td>
</tr>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#myTable {
border-collapse: collapse;
}
#myTable td {
width: 50px;
height: 50px;
border: 1px solid black;
text-align: center;
vertical-align: middle;
font-size: 24px;
font-weight: bold;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
background-color: #f5f5f5;
padding: 10px;
text-align: center;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
alert("Hi thanks for checking out this code. I have modified code found in Q&A. I do not take full credit for the code, besides getting it to work.");
alert("I have provided links to the disscussion and to the base code.");
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run