Could anyone tell me why the below code does not work to add a border to the table that I am creating. Thanks
<html>
<head>
<title>Exam5 review</title>
<style type="text/css">
table.center
{
border: 1px;
background-color: green;
width: 500px;
text-align: center;
margin-left:auto;
margin-right:auto;
}
</style>
<script type="text/javascript">
function parse()
{
document.open();
document.write('<table class="center">');
document.write('<tr><th>Course</th><th>Enrollment</th></tr>');
document.write("</table>");
}
</script>
</head>
<body onload="parse();">
</body>
</html>