HTML or XHTML - does it really matter?

Jonathan Snook is asking a simple question with a not-so-simple answer: Which is better: HTML or XHTML?. More specifically, he is asking which is better of HTML 4.01 Strict and XHTML 1.0 Strict.

Like so many other topics in web development, this has been discussed before. I don't see a problem with bringing it up again though. A renewed discussion can bring forward new arguments. Or we can just have some fun.

My opinion is that it doesn't really matter, but I do think that if you choose to use HTML 4.01, you should make it as XHTML compatible as possible. Basically write your HTML as if it was XHTML - make element and attribute names lower case, quote all attribute values, and don't skip optional end tags. You will thank yourself if you some day decide to switch to XHTML.

Posted on January 17, 2006 in Quicklinks, (X)HTML