<div> and <table>

Discussion in 'HTML & Website Design' started by forumSEO, Apr 12, 2007.

Thread Status:
Not open for further replies.
  1. #1
    I have always thought that most sites use tables for keeping content organized. I like this website (http://www.customicondesign.com/) and it uses <div>. Why does that person use div and what are the advantages and disadvantages of using it?
     
    forumSEO, Apr 12, 2007 IP
  2. markov

    markov Peon

    Messages:
    3,010
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I doubt the seo friendly nature of <div> tags.
     
    markov, Apr 12, 2007 IP
  3. dmi

    dmi Well-Known Member

    Messages:
    2,705
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    140
    #3
    It's the current web standard. Divs load quick. There was a subject similar to this yesterday.
     
    dmi, Apr 12, 2007 IP
  4. unitechy

    unitechy Peon

    Messages:
    350
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    they use css style sheet
     
    unitechy, Apr 12, 2007 IP
  5. animateddesigns

    animateddesigns Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes unitechy is correct. say you want 2 paragraphs of text different from the rest, one way would be to use the <div> tags. Css is a wonderful thing and you should read up on it. it will save you loads of time.
     
    animateddesigns, Apr 12, 2007 IP
  6. Mooseman

    Mooseman Peon

    Messages:
    453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Just search this forum and you'll find like a 1000 good answers and threads. ;)
     
    Mooseman, Apr 12, 2007 IP
  7. boyponga

    boyponga Banned

    Messages:
    1,013
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Divs loads quicker than tables. Divs are one good tag for css purposes. :D
     
    boyponga, Apr 12, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Divs are non-descript HTML elmeents without any semantic meaning, other than "division of the page".

    Web sites that are coded properly will not use DIVs instead of tables, but instead will use semantic markup, which is the use of the proper HTML elements (tag pairs) for the job. Such as H1, H2, H3 (and so on) for headings, unordered lists for menus (since a menu is just a list of links), P tags for paragraphs, and so on to define the structure of the Web page (HTML is like an outline for a report in that sense).
     
    Dan Schulz, Apr 13, 2007 IP
  9. I-Got-IT!

    I-Got-IT! Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Other than tables doesn't load as quickly as div layers, I think using div layers are more much organized and neater codes compared to tables, IMO.
     
    I-Got-IT!, Apr 14, 2007 IP
  10. Rich_H

    Rich_H Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Tables were never meant to be used for web page layout, they are for tabular data, but a lot of designers resorted to using them for layout before CSS was as supported as it is now.

    A div allows for the grouping of HTML elements so that CSS styles can be applied.


    Rich
     
    Rich_H, Apr 14, 2007 IP
  11. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #11
    And even then, a lot of the time the DIVs aren't necessary.
     
    Dan Schulz, Apr 14, 2007 IP
  12. nfd2005

    nfd2005 Well-Known Member

    Messages:
    295
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    130
    #12
    Using divs and css is a great way to keep your code to text ratio down.

    It also will allow you to change the layout of your web page with less coding, since all you will have to do is edit the css.
     
    nfd2005, Apr 14, 2007 IP
Thread Status:
Not open for further replies.