Click here to Skip to main content
15,613,470 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
why divs are more preffered than table for designing?

1 solution

Actually, nobody prevents you from using tables for designing.

But common argument is: tables were introduced to provide structure to data. By "providing structure to data", I mean presenting some tabular data, like Excel sheet, for example.

Short Answer: current HTML5 standard, it's support across major browsers - allows mastering layout of different complexity without use of tables. Divs - are bricks of the layout - thus it's most reasonable to use them.

Long Historic Answer

Long time ago, in HTML 3.2 spec[^] it was mentioned, that [tables] ... can be "used to markup tabular material or for layout purposes". But again, it was recommendation "The wisdom of past experience encourages us to separate the structural information in documents from rendering information. Mixing them together ends up causing increased cost of ownership for maintaining documents, and reduced portability between applications and media"
Share this answer
yogika 18-Jan-13 1:58am    
actually i want ask that which one solve resolution issues.which is more usefull
Vyacheslav Voronenko 18-Jan-13 2:00am    
Definitely Divs are easier to adjust and restyle, but in order to deal with different resolutions - nowadays we use CSS media queries, and keeping font sizes in 'EM's.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900