0

I am in a bit of a dilemma: I know XHTML 1.0 really well and HTML really well. But what markup language should I use in my latest PHP application? XHTML 1.0 or HTML5?

Also which would be future proof?

And finally if I was to build a normal site, what language would be best to use now?

khellang
  • 17,550
  • 6
  • 64
  • 84
Oliver Bayes-Shelton
  • 6,135
  • 11
  • 52
  • 88
  • 1
    Duplicate of a dozen other questions, e.g. http://stackoverflow.com/questions/872336/xhtml-2-0-vs-html-5, http://stackoverflow.com/questions/256953/html-5-versus-xhtml-1-0-transitional, http://stackoverflow.com/questions/472274/why-are-xhtml-5-and-xhtml-2-separate-standards, http://stackoverflow.com/questions/413114/html-vs-xhtml-does-it-still-matter. – Max Shawabkeh Feb 04 '10 at 10:00

3 Answers3

4

For the time being, I would advise you to stick to HTML 4 (and not XHTML).

As mentioned, if HTML5 is the future way to go, it is not supported enough for now.

Regarding XHTML vs HTML, this is a bit a trollish subject, but I do agree with Jeff Atwood and James Bennet that XHTML is just not worth its pain.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Benoît Vidis
  • 3,908
  • 2
  • 23
  • 24
2

XHTML is nice, but it's really only practical as the output of some sort of XML-based process. Stick to HTML 5 for now.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
1

Stick to HTML 4.

In most cases, generating HTML Compatible XHTML is more trouble than it is worth, while HTML 5 is still subject to change and the new features in it are poorly supported.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335