Possible Duplicate:
Why not use tables for layout in HTML?
I just want to know the difference between table-based layout and div-based layout. When should I use what and why?
Thanks in advance.
Tables should only ever be used for tabular data. It really is as simple as that.
As for why; a website layout isn't tabular data.
Also, a table will use more code in your page. For example; to create one 'box' you can either do this:
<table>
<tr>
<td>Box Content</td>
</tr>
</table>
or this
<div>
Box Content
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With