0

Duplicate:


There appears to be a unified opinion that the developments in HTML 5 and support by browser vendors of HTML 5, make the adoption of XHTML 1.0 with hopes of the day of XHTML 2.0 a bad choice.

For this reason I have decided for my most recent project to use a strict HTML 4.01 doctype, which has required me to look back at HTML conventions such as not using greater than characters at the end of self closing tags

The question is am I doing the right thing?

Community
  • 1
  • 1
Nick Allen
  • 11,970
  • 11
  • 45
  • 58
  • The XHTML vs. HTML debate has come up numerous times - as can be seen in the 'Related' column to the right, most recently, here: http://stackoverflow.com/questions/867498/at-the-end-of-the-day-why-choose-xhtml-over-html The crux of the issue still comes back to XHTML vs. HTML. There is far from universal adoption of HTML5 at the moment. – James B May 16 '09 at 12:39
  • 1
    Unfortunately, there is also far from universal adoption of XHTML ;) – jalf May 16 '09 at 13:09
  • True enough. So if neither is very well adopted, the issue just comes back to taking them at their theoretical merits? ;) – James B May 16 '09 at 13:19
  • 2
    Or accepting that web development does, and will probably always, suck. And just go for the lowest common denominator. Which unfortunately, probably means HTML4.01. Or my preferred strategy, just staying the hell away from web programming when at all possible. ;) – jalf May 16 '09 at 13:33
  • There is that option, too ;) I still like to hold some hope of the web actually becoming more structured and machine-readable, though... not that I think the XHTML spec is well written at all, but it has some good ideas. – James B May 16 '09 at 13:57

2 Answers2

4

XHTML 2 is going to die a quiet death, unused and unmourned.

Matthew Wilson
  • 3,861
  • 21
  • 14
  • XHTML 2 had some nice stuff. It's too bad that it had to die. Especially considering how HTML 5 didn't fix any of the problems I was waiting for XHTML 2 to fix. :/ – Hakanai Nov 15 '16 at 03:25
0

I'd stick with XHTML, HTML 5 supports most XHTML syntax (<br />, etc.)

HarryM
  • 1,875
  • 13
  • 7