HTML 4 or XHTML 1.0?

Discussion in 'Web Design and Development' started by Aranince, May 26, 2007.

  1. Aranince macrumors 65816

    Joined:
    Apr 18, 2007
    Location:
    California
    #1
    Which standard do you follow? I follow XHTML 1.0 personally, is there any specific reasons why you follow one particular standard?
     
  2. benneh macrumors member

    Joined:
    Oct 20, 2006
    #2
    others can give you a better answer, but for me, my reason would be because XHTML is a stricter, and because it incorporates xml, it is cross device compatible..

    that's all i need to know :)
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    I use XHTML 1.0 and some times 1.1. I like it because it is stricter, uses lowercase tags, and is the future. HTML 4 is old and showing its wear. No point in making new web pages with an older standard when there is a better one that can be used. XHTML allows for more things and being based on XML really opens up some doors.
     
  4. stndn macrumors member

    Joined:
    Oct 22, 2006
    Location:
    earth
    #4
    I used to use XHTML 1.0 for about two years before moving back to HTML 4. Nowadays, I use strict HTML 4 only.

    Why the move back to HTML 4? At one point in life, I came across this article: Beware of XHTML, and that's what made me return to HTML 4.

    Either XHTML or HTML can be made strict. It all depends on how you "write your code". What's important is to make your page follow the rules. Also, don't forget to use the correct DTD. Use strict DTDs if possible, and validate as necessary (if you feel like it).

    Btw, HTML can use lowercase tags also. The use of uppercase tags was leftover from the old days where they want to make finding the tags easier in their source code. ,)

    Strict is what you made it. Just follow your heart and don't let the "web experts" make you what you are not.


    -stndn.

    Edit: This forum link has another interesting take on the whole debate. It's quite long but definitely informative.
     
  5. hopejr macrumors 6502

    Joined:
    Nov 10, 2005
    Location:
    New South Wales, Australia
    #5
    That Beware of HTML page is very enlightening. I've traditionally used XHTML 1.0, but I'm going to switch to HTML 4.01 now.
     
  6. cube macrumors G4

    Joined:
    May 10, 2004
    #6
    With XHTML you have to be careful to write things like <br />, not <br/> for compatibility with browsers.
     
  7. epochblue macrumors 68000

    epochblue

    Joined:
    Aug 12, 2005
    Location:
    Nashville, TN
    #7
    I was about to write a small diatribe about XHTML vs HTML based on this article, but since something else about has been posted (and said more eloquently that I would have), I'll echo the above sentiment:

    Use what you want, use a strict doctype, and make sure your page validates. If you have all that, you're doing great.
     

Share This Page