That's because the CSS declaration overrides the table's border attribute. If you remove 'class="table1"' from the <table> tag, then the table will use the value of the border attribute. The easiest way to achieve the effect you want is to wrap the table in a <div> tag and apply the "table1" class to the div, e.g.:
<div class="table1">
<table border="1" width="500" height="162">
<!-- table HTML -->
</table>
</div>
Note that your HTML has several errors. You should use a validator. If you don't have an IDE with one, you can use the w3c's here: http://validator.w3.org/
<div class="table1">
<table border="1" width="500" height="162">
<!-- table HTML -->
</table>
</div>
Note that your HTML has several errors. You should use a validator. If you don't have an IDE with one, you can use the w3c's here: http://validator.w3.org/