Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tables vs. div tags - advantages/disadvantages 2

Status
Not open for further replies.

LittleNFiesty

Technical User
Sep 26, 2006
46
US
I've noticed that the "new" way to design websites is to use the div tags for placement of content/headers/navigation. What is the advantage of using a div tag vs. using tables for more precise placement?
 
1. Divs are semantically correct, so easier for search engines to evaluate.
2. Divs are easier to layout accurately, especially with dynamic layouts.
3. Div layout is easier to understand and maintain.

I notice that you have asked 12 questions in these forums, but haven't marked a single answer as being valuable. If you didn't get valuable answers try faq222-2244 to help with better questions. If you did get valuable answers read faq222-2244 to see how to acknowledge them.

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Probably one of the best examples of why not using tables is good is the site
All of the layouts are using [!]identical[/!] markup. The only thing that changes is the CSS.

Pretty impressive, eh?

P.S. My favourite has always been Radio Zen (
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
 
Thanks!! I will definately keep this in mind next time we "revamp" our websites!
 
Divs are hardly new anymore.

Advantages of tables: Any idiot can use them. Still the best way to present tabular data.

Disadvantages: Typically add unneeded markup, slowing down load time. Combine presentation with content.

Advantages of divs: Separates content from presentation. Redesign may be accomplished by only changing stylesheets.

disadvantages of divs: Redesign rarely accomplished by only changing stylesheets. [smile]

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top