-
XHTML Black Book
XHTML Black Book is what I'm currently reading. It's a pretty good book; it covers HTML, XHTML and some XML and compares them to there old versions.
Well anyway that book led me to two simple questions:
XHTML 1.0 or 1.1? Is XHTML 1.1 based on XHTML 1.0 strict? Because I prefer transitional; CSS got it's limits...
Should I use DTD files in a directory? (I never seen a website do that)...?
TY For Taking Your Time To Read Regular Smile
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
It is XHTML 1.0 and if you are using transitional then the doctype is the above one.
-
Any transitional doctype is bad, they allow far too much mixing of presentation and content. Are there any specific issues you're having getting your pages working using a strict doctype and CSS for presentation? As for XHTML 1.1, it requires an XML mime type, which makes it incompatible with internet explorer - so not a good choice. Hence you're best sticking with XHTML 1 strict, or probably better HTML 4.01 strict.
See this discussion for further details of HTML vs XHTML http://www.sitepoint.com/forums/showthread.php?t=393445