aleksanteri Posted June 30, 2006 Share Posted June 30, 2006 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 More sharing options...
aspnetguy Posted June 30, 2006 Share Posted June 30, 2006 no I don't believe it is necessary. I never do and it validates fine. Link to comment Share on other sites More sharing options...
pulpfiction Posted June 30, 2006 Share Posted June 30, 2006 look for "Mandatory XHTML Elements" topic in this page..http://www.w3schools.com/xhtml/xhtml_syntax.asp Link to comment Share on other sites More sharing options...
boen_robot Posted July 1, 2006 Share Posted July 1, 2006 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 More sharing options...
aleksanteri Posted July 1, 2006 Author Share Posted July 1, 2006 OK thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now