Been a couple of years since I done a website, and I've only done two in my time.
Should I use xhtml strict or html5?
html5, without a doubt. XHTML has always been dead in the water.
... unless you're the kind of developer who actually cares about things like page semantics, progressive enhancement and so on. XHTML 1 has been very useful in writing structured page content, and major browsers support it because it can be read by a standard HTML parser (with stricter rules). There's a new version of XHTML called XHTML 5, and it won't catch on because it's structurally very different to HTML and browser manufacturers would have to maintain another renderer to support it.
There's a new version of XHTML called XHTML 5,
Sorry, but you're barking up a TREMENDOUSLY wrong tree here. XHTML never caught on because it was always a bad idea. And page semantics, progressive enhancement, etc are total red herrings, because they're possible in ANY doctype. HTML4 transitional supported all of that, so not sure what you're talking about.
XHTML Strict doctype was a lot better than any transitional doctype, especially when it came to IE browser rendering bugs.
Thanks for replies people. I think I'll stick with xhtml as I am familiar with it and it shows up pretty well on browsers that I have tested. Especially on mobiles where I thought I would have problems.
Really? Why even ask the question if you're just going to go against the recommendations?
HTML5 is supported by all browsers. Why would you build something using an old format when there's a new format that replaced it?I'm taking MiketheVike, and YaniDepp's input and before you start I know Mike said HTML5 is fine to use; no one is really screaming to use HTML5.
It seems that xhtml is still perfectly valid and has good cross-browser compatibility. No-one has made a case for HTML5 really, I was expecting more HTML5 support.
'Sorry, but you're barking up a TREMENDOUSLY wrong tree here. XHTML never caught on because it was always a bad idea. And page semantics, progressive enhancement, etc are total red herrings, because they're possible in ANY doctype. HTML4 transitional supported all of that, so not sure what you're talking about.'
Don't really see what point you're trying to make here??? Maybe that xhtml requires perfect semantics or something.
HTML5 is supported by all browsers. Why would you build something using an old format when there's a new format that replaced it?
The point I was making is that none of those things are found only in XHTML. All of those points (page semantics, progressive enhancements) are present in ALL flavors of (X)HTML. As I've said before, XHTML always was a bad idea, and now it's an out-of-date, bad idea. If you use it the way it's supposed to be used (serving it as XML), IE doesn't work at all, and _all_ browsers have issues rendering it. If you serve it as text, there's absolutely no reason to use XHTML, as it's parsed using the HTML engine in-browser.
Now you're making some good pointsand I'm thinking of doing it in html5.
I Just hope it's not gonna be too bad to learn as I'm an absolute amateur.
Thanks for replies.
IE, for example, renders your page in Standards Mode if it has a doctype and Quirks Mode if there isn't a doctype