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 aguswgs, May 13, 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...
     
    aguswgs, May 13, 2011 IP
  2. prashantban

    prashantban Well-Known Member

    Messages:
    1,202
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    100
    #2
    DIV ofcourse..
    but now a days professionals dont use even that... but div is far far better than tables..:)
     
    prashantban, May 13, 2011 IP
  3. BennyTran

    BennyTran Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i think so .
    Generally better to use div :
    code will shorter
    Your Website will load faster
    Seo is better

    In some cases, if the div code complex and lengthy than feel you should use table
     
    BennyTran, May 13, 2011 IP
  4. ken.sweet

    ken.sweet Active Member

    Messages:
    683
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    93
    #4
    Its better to use divs as tables are outdated. My clients do not like table layouts.
     
    ken.sweet, May 13, 2011 IP
  5. Matix

    Matix Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Tables were meant for Data, Divs for layouts. The only time you should use tables is for Data.
     
    Matix, May 14, 2011 IP
  6. aman_gcs

    aman_gcs Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #6
    Tables should be used only for the display of tabular data not for the layout of pages.

    The way I work is div for page structure and where applicable tables within those divs to hold tabular data such as price lists.

    There's heaps of threads on here about tables vs div.
     
    aman_gcs, May 14, 2011 IP
  7. eamo

    eamo Peon

    Messages:
    225
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    A lot of the divs I see on websites are even more messy than the tables they were supposed to replace.
     
    eamo, May 16, 2011 IP
  8. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #8
    The guy who first thought of using tables for layout wrote that his idea ruined the web and he regretted the very thought. That was in 1998 and here we still have people 13 years later who still haven't gotten that message. We just don't ask this question anymore.

    Unfortunately, this thread will continue for another six months, or maybe even years. Just watch the next few posts.
     
    drhowarddrfine, May 16, 2011 IP
  9. om39a

    om39a Peon

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I wouldn't use DIV. I use tables for my site. I tried using DIVs, and it only messed up my site, things wouldn't display right. It's up to you though, it depends more on the site, and the Css you are using, if any. I'd use Div/layers for things inside my body, not for the body/layout itself. Maybe I worded that wrong...
     
    om39a, May 16, 2011 IP
  10. dj_sonu2003

    dj_sonu2003 Well-Known Member

    Messages:
    108
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #10
    Better you use DIv coz its easy to manage your layout while your site running. If you are a perfect XHTML/CSS coder so you can easily make some changes (like color, menu, background images .. etc) through updating CSS file only.

    For the table you will have to see both code table code & your CSS file code..
     
    dj_sonu2003, May 17, 2011 IP
  11. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #11
    See what I mean.
     
    drhowarddrfine, May 17, 2011 IP
  12. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #12
    right drhowarddrfine, I'm sure, this will go for next decade as well unless W3C eliminates tables or may be thereafter as there will be people in dilemma between old transistor and HD television.
     
    Last edited: May 17, 2011
    radiant_luv, May 17, 2011 IP
  13. antoniomtz

    antoniomtz Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    DIV with CSS.

    Tables are useless nowdays.
     
    antoniomtz, May 17, 2011 IP
  14. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #14
    @radiant_luv, we should have some fun with this.
     
    drhowarddrfine, May 17, 2011 IP
  15. Projekt.Gopher

    Projekt.Gopher Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I am much happier programming my layouts in CSS with divs... Tables made making changes a living hell for me. Divs are cleaner, easier to manage, abstracts information from layout, keeps file sizes down. There really is no perceivable downside as far as I can see.
     
    Projekt.Gopher, May 17, 2011 IP
  16. forwardslash

    forwardslash Active Member

    Messages:
    250
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #16
    div tags definitely...more flexibility and easy to use.
     
    forwardslash, May 18, 2011 IP
  17. quicklink

    quicklink Peon

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    I think div tags loads faster and its pretty easy to use so i would definitely prefer div over table
     
    quicklink, May 18, 2011 IP
  18. WebSolution24

    WebSolution24 Active Member

    Messages:
    81
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    81
    #18
    I would say that tables are easier. But div tags are more professional
     
    WebSolution24, May 18, 2011 IP
  19. borislav.arapchev

    borislav.arapchev Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    hm..
    both ways are ok

    some designs can not be made without tables, i think ...

    i 'll search for some examples
     
    borislav.arapchev, May 18, 2011 IP
  20. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #20
    @radiant_luv, I think most of these people just read the first post and respond to that one. There's another thread going elsewhere for 2 1/2 years with the same repeating answers.
     
    drhowarddrfine, May 18, 2011 IP