PDA

View Full Version : xHTML 1.0 or HTML 4.01



xumeng12
05 May 2011, 08:21 PM
I've moved to xHTML 1.0 now. Anyone else moved on from 4.01 transistional yet? Any one know the pros and cons of these different standards?

Wickham
06 May 2011, 12:42 AM
XHTML 1.0 with content="text/html" is "tag soup" since you are using XHTML doctype and XHTML coding methods like lower case tags and closing with /> instead of > but a few lines later you are telling browsers to process it as HTML. It doesn't really matter, but it's a mixture of two methods.

Read this:-
http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=2139#18788

Since he wrote that we now have HTML 5 in beta form which you can use now, and pure XHTML with content="application/xhtml+xml" which you shouldn't use for normal websites.

Read this too:-
http://www.wickham43.net/generaladvice.php#xhtml

Note that http://dev.w3.org/html5/spec/Overview.html in Item 1.6 HTML vs XHTML in the W3C HTML 5 page says The first such concrete syntax is the HTML syntax. This is the format recommended for most authors. It is compatible with most legacy Web browsers. If a document is transmitted with the MIME type text/html, then it will be processed as an HTML document by Web browsers.