Edit: please keep in mind that I know next to nothing aboutJavaScript, CSS etc. and have had to find these things on my own. I started just a couple hours ago and don't know most of the things in the replies. Sorry.
I have to make a 50 x 50 checkerboard using ONLY html and ONLY tables. I've obviously given up on this maniacal request and tried using some CSS (even though my teacher hasn't taught us yet) but I can't get it to work. How should I go about this? I've tried doing it like this, but my teacher started teaching us html only a couple months ago (we're EXTREMELY late on the program) and it's really bad.
(At the bottom is what I wrote into the CSS file)
code
<head>
<title> Compito scacchiera tabelle </title>
<link rel="stylesheet" href="colore.css">
</head>
<body>
<script>
var i = 0;
for(i=0; i<=50; i++){
<tr>
for(i=0; i<=50; i++){
if(i % 2 == 0){
<td id="nero;"> </td>
}
else{
<td> </td>
}
}
</tr>
}
</script>
</body>
The CSS file:
#nero {
background-color: black;
color: black;
}