Results 1 to 11 of 11
-
06-01-2011, 02:06 AM #1Newbie
- Join Date
- Apr 2011
- Posts
- 25
For Website Design div tags or Tables?
Hi Friends,
Which one is better using div tags or tables for designing a website and why?
Thanks
-
06-01-2011, 03:17 AM #2Corporate Member
- Join Date
- Apr 2010
- Location
- Global
- Posts
- 104
Hi Rahulsuresh,
good question!
My opinion is to go with DIVS. Since we started using DIVs instead of tables in the new websites we develop we noticed amazing results, that forced us to switch the table layout into DIVs from our old websites.
There are several reasons that DIVs are better than tables:
1. Page size becomes smaller so the loading is faster on most of the browsers.
2. You have a centralized styling (since you will be dealing only with CSS for the DIVs' styling) that gives you flexibility for future changes.
3. The source file is much easier for reading - both for other developers working on the website AND for the search engines!
These are three points that come on my mind right now, but for sure there are more advantages of DIVs in comparison to Tables.Leading Data Center Services Provider
Bare-Metal Dedicated Servers, Cloud & VPS, Colocation, Data Center Managed Services
https://netshop-isp.com.cy
sales@netshop-isp.com.cy | Skype: netshopisp
-
06-01-2011, 03:19 AM #3Web Hosting Master
- Join Date
- Jan 2011
- Posts
- 669
-
06-01-2011, 03:32 AM #4Junior Guru
- Join Date
- May 2011
- Location
- California, USA
- Posts
- 208
DIV's are the way to go as tables were only ever meant to display tabular data. Tables can be useful in certain situations however.
-
06-01-2011, 04:46 AM #5Hmmm....
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,341
DIV's are used as containers in structural markup to define content divisions and coupled with CSS, for layout. Tables are used to display data, not content, in rows and columns.
Well, no. Tables have very legitimate uses, especially in the web hosting industry where a designer might want to clearly and concisely compare web hosting packages, for example.███ ServeYourSite
███ Web hosting done right
███ Shared, Reseller and Dedicated web hosting
███ An Easy Web Presence Company
-
06-01-2011, 10:30 AM #6Corporate Member
- Join Date
- Apr 2010
- Location
- Global
- Posts
- 104
Leading Data Center Services Provider
Bare-Metal Dedicated Servers, Cloud & VPS, Colocation, Data Center Managed Services
https://netshop-isp.com.cy
sales@netshop-isp.com.cy | Skype: netshopisp
-
06-01-2011, 09:15 PM #7Newbie
- Join Date
- May 2011
- Posts
- 22
Like teapot said, divs are meant to organize your content. You will generally have separate "content areas" in a website, and you can separate these in divs and style each one individually this way.
However, as pointed out, tables do have uses in organizing content sometimes. They are, of course, to be used for displaying tabular data. However, they can be useful in other situations such as organizing a form.
-
06-02-2011, 12:40 AM #8Junior Guru
- Join Date
- Jun 2010
- Posts
- 179
DIV tags work better than the Tables for the websites.Table take more space and time for loading.It can make the site slow.So, DIV tags can be used in place of tables.
-
06-03-2011, 07:19 PM #9Newbie
- Join Date
- May 2011
- Location
- California
- Posts
- 6
I agree that DIV tags are the way to go. Tables were ever only meant to hold tabular data and are not for design purposes.
-
06-04-2011, 07:19 PM #10Disabled
- Join Date
- Aug 2008
- Posts
- 2,237
Do not use tables. Tables are so 2005!
-
06-04-2011, 10:58 PM #11Junior Guru Wannabe
- Join Date
- Jun 2007
- Location
- Taylorsville, Utah
- Posts
- 46
No More Tables!
█ TurboHosted Web Hosting
█ Fast, Quality Web Hosting
█ Call Us: (801) 876-0680
█ Visit Us Today | myTurboHosted
Similar Threads
-
Div Tags or Tables?
By webmaster98 in forum Web Design and ContentReplies: 7Last Post: 05-14-2011, 05:32 PM -
BASIC website layout help <div> tags
By Goldfiles in forum Programming DiscussionReplies: 5Last Post: 04-11-2011, 12:19 PM -
Page Layout in DIV Tags or Tables?
By fisherdigital in forum Web Design and ContentReplies: 13Last Post: 03-20-2007, 06:34 PM -
Need simple design coded into valid XHTML and CSS (tableless-with DIV tags)
By mrsam in forum Employment / Job OffersReplies: 4Last Post: 04-03-2006, 11:54 AM -
div tags
By isheikh in forum Web Design and ContentReplies: 1Last Post: 05-29-2004, 08:01 PM