|Cellpadding and cellspacing attributes all apply to all cells within that table, so to add to mikelinus' answer on this: |
<table border="1" cellpadding="5" cellspacing="0">
Would affect everything that comes after right up to </table>. However, bear in mind that it won't affect nested tables. So the following code:
<table border="1" cellpadding="5" cellspacing="2">
..would give you a table within a table that has the default attributes, not inherited from the parent table.
Hope this answers your question!