Tables - and what not to do with them.

When first learning basic html, you will probably come across tables. At first sight you may think that creating a website of tables to layout your website is a great idea. Unfortunately today, with CSS gaining ground next to html, we now have a better alternative. Using CSS is superior to tables when dealing with layout, and this is why.


Why CSS is better to use:

  1. Tables are usually more bytes than CSS
  2. Tables usually prevent incremental rendering
  3. Tables can require you to "chop" a bigger image into smaller ones.
  4. Tables can prevent some layout features from working within them.
  5. Tables take longer to impliment than CSS
  6. Tables should describe content, not presentation.
  7. Tables are horrible for people using screen readers.
  8. Tables make it harder to redesign.

Why are tables better to use?

  1. ...um... that's a tough one...

To be fair however, tables aren't all that bad. Like I said in point 7, tables should be use to describe content. If you had a list that you wanted to put in your website like below, that would be fine.

Name Address Phone#
... ... ...
... ... ...
... ... ...
... ... ...
For that reason, it is a good idea to use a table to organize your content. However, as I stated before, it's not a good idea to use it to design a website.

Some more sites to check out

http://phrogz.net/CSS/WhyTablesAreBadForLayout.html

http://kimihia.org.nz/articles/tables/

http://wordpress.org/support/topic/77912



Back to Top...