Tuesday, June 10, 2008

Which Is Better DIV or Table

Hi Most of us come across this situation where we have to make a choice between DIV and a Table.
Most of he webmasters prefer DIVs than Tables. But Only few know the their Benefit .
Here is the list of reasons as why Div is better then Table.
  1. Div Loads faster than Tables
  2. Tables can be inflexible
  3. Accessibility issues are easier with CSS
  4. Tables don’t print as well
  5. Div is great for SEO – powerful to do content positioning. So basically you can place the bulk of your rich content closer to the top of your HTML code, but it will still render on the browser in the same place
  6. DIVs can reduce the size of page - Use of DIVs and CSS can allow you to reduce the size of your HTML significantly, depending on how nested your tables are. TABLE tags require, TR, TD, and some cases include, TH, THEAD, TBODY, TFOOT. This adds quite a few tags that can all be condensed into a few DIVs.