CSS Div tags or HTML table tags? And why XHTML?

Discussion in 'HTML & Website Design' started by chulium, Nov 26, 2005.

  1. #1
    Hey all,

    Sorry for the n00bish questions, I think CSS div tags process quicker than HTML tables, though, right?

    So div or table?

    And why use XHTML over HTML?

    Thanks for any help,
    -Matt
     
    chulium, Nov 26, 2005 IP
  2. Dekker

    Dekker Peon

    Messages:
    4,185
    Likes Received:
    287
    Best Answers:
    0
    Trophy Points:
    0
  3. chulium

    chulium Well-Known Member

    Messages:
    1,438
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Ah, right :) I feel stupid now. Thanks! ^_^

    So why use XHTML over HTML then?
     
    chulium, Nov 26, 2005 IP
  4. Dekker

    Dekker Peon

    Messages:
    4,185
    Likes Received:
    287
    Best Answers:
    0
    Trophy Points:
    0
    #4
    who uses xhtml?
     
    Dekker, Nov 26, 2005 IP
  5. Entelarust

    Entelarust Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    xhtml is more structured and organized
     
    Entelarust, Nov 27, 2005 IP
  6. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Well, HTML really is just as structured as XHTML. The only problem is that most people teach, learn, and write sloppy HTML.

    The benefits of XHTML right now for the developer is pretty much nothing. No browser (that I know of) has actually implemented the extensible part of eXtensible HTML. So for now there's really nothing new you can do with XHTML.

    Devices have a theoretical benefit, but probably no practical benefit. XML parsers are simpler than SGML parsers, meaning XHTML pages may not require as much processing power. However, since the majority of the Web remains HTML these devices would still have to be powerful enough to process HTML code anyway.

    So the only benefit you might get from writing your pages in XHTML is just to save yourself the trouble of doing it five years from now. (Five years is just a guesstimate, btw.)
     
    FeelLikeANut, Nov 27, 2005 IP
  7. Entelarust

    Entelarust Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yeah there might not be any benefit as of right now

    but just on a self organization level i find it a lot easyier to maintain with the strict standards of xhtml
     
    Entelarust, Nov 27, 2005 IP
  8. chulium

    chulium Well-Known Member

    Messages:
    1,438
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    140
    #8
    Ah, cool. I'll read up some more on XHTML and see what I can do. Thanks! ^_^
     
    chulium, Nov 27, 2005 IP
  9. hafizahmedraza

    hafizahmedraza Active Member

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #9
    thanks to share
     
    hafizahmedraza, Nov 3, 2009 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    To the contrary, the ONLY browser that does NOT do XHTML is Internet Explorer. ALL the other major browsers run XHTML just fine.
    If you don't concern yourself with visitors using IE, XHTML may be the better way to serve pages, especially if you are transferring machine to machine and using XML, or do more information sharing than pretty blinking lights.
     
    drhowarddrfine, Nov 3, 2009 IP
  11. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #11
    As said above, XHTML is no more strict than HTML except browsers don't forgive sloppy coding with XHTML like they do with HTML.
     
    drhowarddrfine, Nov 3, 2009 IP
  12. forextrendalerts

    forextrendalerts Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    If you use the <div> tag combined with CSS, you will create a page that is easy to manage and manipulate later. Using the <div> tag allows you to define the page in terms of the logical divisions of the page, not just the locations in the layout (that will certainly change in the future). Most Web pages have fairly standard content chunks, and if you use the <div> tag to divide them, you'll be ready to style them however you'd lik......
     
    forextrendalerts, Nov 4, 2009 IP
  13. ZX_spectrum

    ZX_spectrum Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Right now I use the only XHTML and CSS, without any tables. And my html files readable and short :) I hope, for Google too ;)
     
    ZX_spectrum, Nov 4, 2009 IP