Jump to content

[SOLVED] Tables, Div's or Both?


pkirsch

Recommended Posts

Hello Everybody!

 

I am wondering which i should Use! Tables, Div's or both? I am trying to follow the W3 Web Standards, and I don't know which are better?

 

I have a friend that said div's load faster!? Div's  are harder to use because you cant position them the same!

 

Please let me know what You think!

 

Thanks. Have a great day,

pkirsch

:)

Link to comment
Share on other sites

If you use a decent doc type declaration then you can place divs exactly where you want.

 

But the answer to your question is both. Use divs to group sections of your page - use tables to display tabular data (and nothing else!) and use css to layout your page as you wish.

 

In actual fact it is far more complicated to manage a page tat uses tables for layout. When it comes to modifying you need to ensure you manage any colspans or rowspans properly AND you need much more markup for a table than a div (it requires at least 3 tags and their associated tags for just one cell - a div is just one open and closing tag.)

 

Pages that have a css layout will (in virtually every case) load faster than its table counter-part.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.