[thelist] use the xml declaration or not?

Christopher Mahan chris_mahan at yahoo.com
Thu Apr 8 11:58:08 CDT 2004


> 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


You are encouraged to use it (per w3c for xhtml 1.0 and 1.1 (and
2.0)), but it is not required. 

If I were you, I would keep it, since it makes going to a pure xml
system very easy later on. (assuming the xhtml validates)

=====
Christopher Mahan
chris_mahan at yahoo.com
818.943.1850 cell
http://www.christophermahan.com/

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/


More information about the thelist mailing list