I'm very new to XHTML, have been incorrectly using HTML for years and
am finally taking a class to write html/xhtml files with some sort of
logic.  However, I have a question that is irritating the hell out of
me.  The book I'm reading from, "HTML and XHTML" by Patrick Carey,
says (or my understanding of what it says) that I write an XHTML
document, place it on the server, then when it is accessed by a user,
an XML parser checks its syntax, and if it it is well formed and
valied, it is passed by the parser and displayed by the browser.  So
if I put this page together:

<code>

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";>

<head>

</head>

<body>
Test body

<span>

</body>

</html>

</code>

Now obviously this is not a well formed document, yet, it successfully
opens in both Opera and IE7, when, in my opninion, the page should not
have been rendered due to the errors in the pages content.  Which
brings me to my question of, what the hell is the point of using
XHTML?  It seems to have everything clean and proper, yet there is no
enforcement?

Thank you ahead of time for any enlightenment...

--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to