I like divs, because the code is cleaner, and allows the site to load quicker. Plus with divs and css, it's so much easier to make visual changes to the site, by editing one file, the style.css tables should only be used for tabular data such as calendars, charts, etc.
I use just divs for layouts.. and tables just for tabular data... As far as I remember HTML is a language... and we must respect the grammar.. So... let's write semantic code.
Divs Advantages: Can edite styling in one spot if you use external stylesheet instead of internal stylesheet or inline stylesheet. Saves on web page file size if you follow the above Can move the containers where ever you want with CSS where as with tables you basically have to redo everything. A well thought out CSS design will save on coding in the long run Disadvantages: Takes practice to learn how to do a more complex design well with minimal coding You have to understand the principles of CSS (Cascading) so you don't waste hours trying to correct something that is related to cascading. You need to understand that each browser (whether standards compliant or not) interprets HTML elements differently. Generally margins and padding are problem areas for the less experienced as they have problems understanding that each browser and operating system interprets measurements differently.
Tables are far people who don't understand css and/or started coding 100 years ago. I'd be embarrassed to code a site in tables. W3C Code is a must.
I agree with Silver89 - tables are definitely for those starting out - W3C and Accessibility should always be adhered to Good luck!
Hi! I use divs for layouts, images...use table for datas, calendars, using div can make your site load quicker.
I've moved past tables myself, simply for the W3C validation (when selling a service, you must adhere to standards). Tables are useful on the rare occasion.
using div for full layouts is a must, tables can get very messy if you want to do a full layout. plus table coding is gathering dust these days, and using divs is not hard at all, just a few lines of code, anyone here using css3, its powerfull stuff.
div tag is cleaner code than table tag but its pretty tough to grasped div tags , table tag can create confusion or mess but its easy for to apply ...
Couldn't agree more with this statement, tables are way too old school and if you think otherwise then you are simply wrong move with the times.
well, based on personal experience, if you would ask this question to 10 people, 9 of them would choose DIVs. using divs give you cleaner code (just div tag plus class), while using tables force you to use <table>, <tr>, and <td> tags. And less code means fast loading pages. Also divs give you one more advantage over tables as when you use divs you use CSS. so assume you wanna change the font, or color, of the whole page, you would need to change only one line in CSS, while in tables you would need to do so several times. generally, use the newest method.