My code only change color of all table when I click the button. Notice that there is a space between each cell so I figured out that I need to change color of each on every cells in table, not the table it self. Any suggestion, I am kind of new to JS and CSS.
<script type="text/javascript">
function color(){
document.getElementById('mytable').style.backgroundColor ="blue";
}
</script>