<table id="myTable" border="1"> <tbody><tr> <td>100</td> <td>200</td> </tr> <tr> <td>300</td> <td>400</td> </tr> </tbody></table> <br> <input type="button" onclick="padding()" value="Change Cellpadding"> <input type="button" onclick="spacing()" value="Change Cellspacing">