table or div tags

liunx

Guest
Both these do the same: ones using a table, the other div tags.
Just what is the difference between these two~
Does one have advantages over the other?

(1)
<table background="blue01_sm1.gif" style="width: 100%; height=23px;" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td style="vertical-align: center;">
<a><center>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"t_clr.gif">
<img src=http://www.webdeveloper.com/forum/archive/index.php/"o_clr.gif">
</a></td></tr></tbody>
</table>

(2)
<div style="text-align: center;">
<div style="background-image: url(blue01_sm1.gif); width: 100%; height:

23px; background-repeat: repeat;">
<a>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"t_clr.gif">
<img src=http://www.webdeveloper.com/forum/archive/index.php/"o_clr.gif">
</a></div></div>Tables are for tabular data, not images. Tables are difficult to control and change.
Divs are for page layout. They are easy to control and change.
 
Back
Top