1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Div Tags or Tables?

Discussion in 'HTML & Website Design' started by webmaster11, May 12, 2011.

  1. #1
    What according to you is more better and easy, code using div layouts or tables layouts for designing. Please share your opinion...
    SEMrush
     
    webmaster11, May 12, 2011 IP
    SEMrush
  2. techntuts

    techntuts Member

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    using div is best practice and also easy... You should only use tables when you have any comparison table to be create or similar one...
     
    techntuts, May 12, 2011 IP
  3. mangeshS

    mangeshS Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Always use DIV's comparing to tables because website created using DIV's loads faster than website created using tables.

    Mangesh
     
    mangeshS, May 12, 2011 IP
  4. 7thand43rd

    7thand43rd Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Best practices state that you should use DIVs instead of tables, though most people start out coding with tables. Working with DIVs can be tricky sometimes, but so can tables, but DIVs are more flexible than tables as you don't have a parent element around the DIV.

    Another problem with tables is the extra lines and size it puts in the file, for every <tr><td></td></tr>, you could just use a <div></div>.
     
    7thand43rd, May 12, 2011 IP
  5. sebasago

    sebasago Peon

    Messages:
    206
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I used to code with tables. Moved over to DIV tags about 2 years ago.
     
    sebasago, May 12, 2011 IP
  6. GasArts.com

    GasArts.com Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    GasArts.com, May 12, 2011 IP
  7. mnaoj08

    mnaoj08 Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i think div is much better than useing the table
     
    mnaoj08, May 30, 2011 IP
  8. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    250
    #8
    More useful information about DIVs vs TABLEs can be found here.
    Also check this article which has been around for exactly seven years now :)
     
    Clive, May 31, 2011 IP
  9. Chmarus

    Chmarus Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Useing divs makes your code much more cleaner. Tables should be used only when you want to display some aggregated data, for example calculation results etc.
     
    Chmarus, May 31, 2011 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    Great!! We just had a thread like this a month or more ago which was identifical to another one we had a year or more or ago which was identical to thousands of other threads you could have found through Google!

    Thank you thank you thank you for starting another one!!!!!!!!
     
    drhowarddrfine, May 31, 2011 IP
  11. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    250
    #11
    It will never end. Dudes like you and "me" who know everything will retire some day, while newbies will continue to know on the door, how do you know this isn't just another 11 year old son trying to figure out what "source code" is :)

    Can't blame them, althought it would certainly be nice if we all learned to do a simple search before asking. There aren't too many unanswered questions left on Google, and this particular one is not among them.

    webmaster11, it's called "tableless design".
     
    Clive, May 31, 2011 IP
  12. caillio

    caillio Greenhorn

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #12
    Div is better
     
    caillio, May 31, 2011 IP
  13. techendeavour

    techendeavour Peon

    Messages:
    407
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I think using div tags is much better for designing.
     
    techendeavour, May 31, 2011 IP
  14. jacksamwhite

    jacksamwhite Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #14
    Div is more easier than using tables in web designing. Div provide a central command through CSS to change layout of every page on the other hand its really tough to deal with tables. Dive based website designs are more SEO friendly than table too.
     
    jacksamwhite, Jun 1, 2011 IP
  15. itabspst

    itabspst Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    DIV is state-of-the-art.

    Use DIV instead of tables and you won´t get in trouble in future tasks. I worked a long time w/ tables, but current CMS must often be built with DIV, if you want a flexible layout and a working CMS.
     
    itabspst, Jun 1, 2011 IP
  16. bigmac_lfc

    bigmac_lfc Peon

    Messages:
    131
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I started out using tables and forced myself to start using DIVs. It is best practice and should lead to a much cleaner, faster, SEO friendly solution. No harm to do a little work on tables because more then likely you will come across them especially if you are working with older sites.
     
    bigmac_lfc, Jun 1, 2011 IP
  17. sanchyclub

    sanchyclub Well-Known Member

    Messages:
    625
    Likes Received:
    6
    Best Answers:
    2
    Trophy Points:
    105
    #17
    Div layout is much better then Table layout. so my ans is Div Tag!
     
    sanchyclub, Jun 4, 2011 IP
  18. kinetic.f1

    kinetic.f1 Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    I know that tabs are old things, but for me it is easier and faster to arrange web-site layout. Especially if you are a novice in web-design, so it will be a bit hard to code using Divs...
     
    kinetic.f1, Jun 5, 2011 IP