Forum Moderators: mack
application/xhtml+xml, and not
text/html. Unfortunately, major browsers and search engines do not support application/xhtml+xml, which de facto makes proper use of XHTML impossible. One can of course send XHTML as text/html, but then there's no point in using XHTML.
Here's a classic thread on this subject: Why most of us should not use XHTML [webmasterworld.com].
You must declare the character encoding of every page. Often the best way is to use the meta charset element as described above - just place it after the
<head> tag and before the <title> tag. Anyone got any links to pages that ARE and SHOULD BE in xhtml?
I know of one math professor who combines XHTML and MathML on his site, but other than that you won't find much.
On standards compliance, I think that validating to any *strict* DTD is better than validating to some supposedly better transitional DTD. The *strict* standard can be hard to meet with user-contributed content, but it is a higher standard than transitional, which basically means "I want to look cool enough to use XHTML, but I don't really feel like making this good enough to run through a strict validator".
For more reading on character encoding (somewhat older posts than encyclos, but I don't think mentioned there). The character encoding issue used to come up a bit in the PHP forum:
[webmasterworld.com...]
[webmasterworld.com...]