D
David Higgins
I am confused about strictly conforming XHTML1.1 documents. We know
that putting anything before the DOCTYPE declaration causes IE to go
into quirks mode, so I leave out <?xml version="1.0"
encoding="UTF-8"?>, and the w3c validator is fine with that. Then the
DOCTYPE declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Then the namespace designator in the html tag:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
I think I understand what the DOCTYPE is all about, but what is the
namespace designator for (as advised in
http://www.w3.org/TR/xhtml11/conformance.html#s_conform )?
Leaving out the namespace designation also does not cause an error on
the w3c validator.
Two questions:
(1) what effect, if any, is there of leaving out <?xml version="1.0"
encoding="UTF-8"?> ?
(2) what effect, if any, is there of leaving out
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" ?
Thanks for any info
Dave Higgins
that putting anything before the DOCTYPE declaration causes IE to go
into quirks mode, so I leave out <?xml version="1.0"
encoding="UTF-8"?>, and the w3c validator is fine with that. Then the
DOCTYPE declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Then the namespace designator in the html tag:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
I think I understand what the DOCTYPE is all about, but what is the
namespace designator for (as advised in
http://www.w3.org/TR/xhtml11/conformance.html#s_conform )?
Leaving out the namespace designation also does not cause an error on
the w3c validator.
Two questions:
(1) what effect, if any, is there of leaving out <?xml version="1.0"
encoding="UTF-8"?> ?
(2) what effect, if any, is there of leaving out
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" ?
Thanks for any info
Dave Higgins