Hi,

First of all... I'm sorry if this is off topic.

I've been telling people (the few who asked me and through my website) to use (valid) xhtml because it a W3C recommendation, it's device independent, (valid) xhtml can be processed by an XML parser, better accessibility, less code, faster processing of code in modern browsers, forward compatibility etc. I guess that's the standard opinion on xhtml or am I completely of track here?

After I participated in a discussion over at the Project Seven newsgroup I'm having doubts! The reason is some very well put arguments from among others, Al Sparber. One of the arguments was less code. Not even close to html 4.01 (See sample 1 below), html 4.01 is also device independent AFAIK. Xhtml is not being processed faster than html 4. Actually there should be no real reason to use xhtml unless you're using xml.

_Sample 1 - html:_
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<p>Hello World.
<p><img src="img.gif" width="10" height="10" alt="some description">
</body>
</html>

_Sample 1 -  xhtml:_
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<p>Hello World.</p>
<p><img src="img.gif" width="10" height="10" alt="some description" /></p>
</body>
</html>

Now what really worries me is this article http://hixie.ch/advocacy/xhtml where xhtml is being considered "harmfull". Is it harmful ?

Now I would like to know what your arguments would be for using xhtml. Not that I can't think for myself... but I'm in doubt if I'm going in the right direction.

I would really like to hear your opinions on this matter.

Kim
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to