Jump to content

xml definition


aleksanteri

Recommended Posts

When you write XHTML, is it mandatory to use the XML definition?

<?xml version="1.0" ?><!DOCTYPE ...><html><head><!-- some things --></head><body><!-- some things --></body></html>

Link to comment
Share on other sites

No, the XML prolog is not necessary. At least not when you serve the page as text/html, where the XML prolog has no meaning whatsoever. And thank W3C for that too. IE6 has a bug which sets it back to quirksmode if you use the XML prolog.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...