[thelist] use the xml declaration or not?
Adrian Gonzales
adrian at clearspanmedia.com
Thu Apr 8 10:51:15 CDT 2004
The xml declaration can mess up in older browsers. And I've seen it make
IE display it like its straight xml... Instead, use an xml namespace
under the doctype.
<!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">
Adrian Gonzales Jr.
Creative Director
Clear Span Media
713.310.7990
clearspanmedia.com
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Sarah Sweeney
Sent: Thursday, April 08, 2004 10:15 AM
To: Evolt - thelist
Subject: [thelist] use the xml declaration or not?
What is the difference between using or not using the xml declaration:
<?xml version="1.0" encoding="UTF-8"?> I have a site I'm working on that
uses it, but I've been told I
shouldn't use it. But if I try removing it, the layout gets slightly
messed up in IE. It seems that the widths of some elements are becoming
wider. Is there an easy way to fix this, or am I better of just leaving
the xml declaration there now?
Sarah
More information about the thelist
mailing list