20.07.2012, 07:47
Quote:
This is just my side of "looking".
If you do a design for a company, using tables, they will laught at you. With css / divs / javascript, they will accept it. Just because the code with css, is more clean and easy, and with tables it isn't. |
- Tables are typically slower than divs (take longer to render and typically require more code too).
Example, which would render first:
Код:<table> <tr> <td>Text</td> <td>Text</td> </tr> <tr> <td>Text</td> <td>Text</td> </tr> </table>
Код:<div style="float:left; width:50%;">Text</div> <div style="float:right; width:50%;">Text</div> <div style="float:left; width:50%;">Text</div> <div style="float:right; width:50%;">Text</div>
- For SEO (Search Engine Optimisation) purposes, divs are better as they expose more content quicker.
Look at the above example, we go through three tags before we even get to any content, making SEO processing longer (not significantly, this tends to depend on the search engine). - A layout overhaul is easier with divs than tables.
With divs you can change a single css file for "look" modifications!