Most common XHTML Doctype that you use?

Discussion in 'HTML & Website Design' started by pipes, May 16, 2009.

  1. #1
    Is XHTML 1.0 Transitional the most common doctype that you find yourself using?

    Do you ever use XHTML 1.0 Strict?
     
    pipes, May 16, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    The only reason to use a transitional DTD is that you're using deprecated (obsolete) elements and attributes. The strict DTD is the one to use unless you have compelling reason to have deprecated elements or attributes.

    cheers,

    gary
     
    kk5st, May 16, 2009 IP
  3. lifesgood

    lifesgood Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I use XHTML 1.0 Strict all the time. But I like things strict. Plus, I figure it'll make my pages look more consistent throughout browsers (Looking at you IE :mad: )
     
    lifesgood, May 17, 2009 IP
    pipes likes this.
  4. DinamoXP

    DinamoXP Peon

    Messages:
    5
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    DTD XHTML 1.0 Transitional

    Freedom of Choice.
     
    DinamoXP, May 17, 2009 IP
    pipes likes this.
  5. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #5
    Hi Gary, thanks il choose Strict then as i want to avoid using deprecated anything.

    Thanks lifesgood, worth trying to get everything as good as possible.

    Thanks for your input DinamoXP.
     
    pipes, May 17, 2009 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    It won't look any diffferent using that and might even be worse since you won't serve it as XHTML, especially in IE which can't understand XHTML at all.
     
    drhowarddrfine, May 17, 2009 IP
  7. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #7
    Can you explain what you mean by that please?
     
    pipes, May 18, 2009 IP
  8. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #8
    Most people think that just because they add the xhtml doctype to the page that the browser will interpret the markup as xhtml and that is not true. Browsers look at the mime type sent by the server. XHTML requires the mime type of 'application/xhtml+xml' but 99.9% of everyone sends their pages as 'text/html'. Therefore, browsers look at your xhtml as html with errors in it caused by xhtml syntax, commonly called "tag soup".

    That's why using xhtml does not make any sense for most people and any advantages anyone claims is nonsense.
     
    drhowarddrfine, May 18, 2009 IP
  9. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #9
    Thanks very much for explaining drhowarddrfine, i didn't realise that.

    Added text: Im going to have to read about that to understand it further but thanks for mentioning this.
     
    pipes, May 18, 2009 IP