Gente, alguém sabe onde estou não errado nesse código para reproduzir essa tabela ?
<html>
<head>
<title>Números Pares de 2 a 100</title>
<style type="text/css">
<!--
td {font: 80% verdana; text-align: center; color:blue;}
//-->
</style>
</head>
<body>
<table border="1" bordercolor="green" cellpadding="2" cellspacing="0">
<tr bgColor="#cccccc" borderColorDark="#fcfcfc" borderColorLight="#999999">
<script type="text/javascript">
<!--
for(i = 2; i <= 100; i++){
if(i % 2 == 0){
if(i % 20 = 0){
document.writ('<td>' + i + '</td></tr>');
if(i < 100){
document.write('<tr bgColor=\"#cccccc\" borderColorDark=\"#fcfcfc\" borderColorLight=\"#999999\">');
}
}
else{
document.write ('<td>' + i + '</td>');
}
}
}
//-->
</script>
</tr>
</table>
</body>