You are not logged in.
Pages: 1
As far as I was aware, HTML was dated and XHTML was the up and coming standard that you shoud learn. However, recently I have started to see things such as this http://hixie.ch/advocacy/xhtml which suggest that XHTML is not handled properly by browsers and you should just use HTML instead.
What should I use?
Offline
I do all my web-development with xhtml. I wasn't aware of these issues, but all the big browsers(opera, firefox, ie, safari) seem to work fine with xhtml. If you are worried about flawed viewing, browsershots.org is perfect to assure you that it works.
Offline
As XHTML is just an application of XML, I'd recommend it over HTML these days. With its DTD, it doesn't let you get away with any mistakes, and forces you to write semantically better markup. I think (punch me if im wrong) that XHTML tends to encourage the use of CSS, so the website can become a little more modular, with the XHTML forming the structure of the page and CSS handling the aesthetics. I don't know how true any of this is but, mostly just imho
Offline
As I understand it, it's the Strict DTD:s that promote the use of CSS, not XHTML in itself (see Transitional vs. Strict Markup).
I've yet to see a website that actually serves the correct mimetype while posing as being XHTML - all I've checked serves their pages as text/html. I used to write my webpages with XHTML as my doctype, and when I read the "Sending XHTML as text/html Considered Harmful" article a few years ago I noticed that I too were serving them as text/html. It took me a good while to figure out how I could serve the pages as application/xhtml+xml (I vaguely remember that I had to do it with some php or even apache setting - it could not be done in the pages themselves...), and when I finally succeeded my webpages... well, I got lots of error messages, and when they worked they were slow as hell, even though it was just markup and css, and no javascript.
So, I (try to) stick to HTML 4.01 Strict
Offline
As I understand it, it's the Strict DTD:s that promote the use of CSS, not XHTML in itself (see Transitional vs. Strict Markup).
I've yet to see a website that actually serves the correct mimetype while posing as being XHTML - all I've checked serves their pages as text/html. I used to write my webpages with XHTML as my doctype, and when I read the "Sending XHTML as text/html Considered Harmful" article a few years ago I noticed that I too were serving them as text/html. It took me a good while to figure out how I could serve the pages as application/xhtml+xml (I vaguely remember that I had to do it with some php or even apache setting - it could not be done in the pages themselves...), and when I finally succeeded my webpages... well, I got lots of error messages, and when they worked they were slow as hell, even though it was just markup and css, and no javascript.
So, I (try to) stick to HTML 4.01 Strict
That is what I have gathered having read around this last day. You would of thought that it would have been more publicised - IE7 can't handle application/xhtml at all and asks you to download that page. Anything else is just malformed HTML. Wierd. Back to brushing up on the HTML skills then....
Offline
I don't care about IE and just use application/xhtml. Maybe dynamic websites could use a trick to detect the user agent and change accordingly (text/html for IE and application/xhtml for the rest), but I think the users should just use another browser until Microsoft fixes IE's behaviour.
Of course that reasoning won't work for commercial websites...
Offline
XHTML 1.0 Strict
o/
Offline
Pages: 1