W3C home > Mailing lists > Public > www-validator-css@w3.org > February 2009

About XML declaration Re: To fix syntax errors of HTML files

From: TAKAHASHI Makoto <hobbit_mak@yahoo.co.jp>
Date: Thu, 5 Feb 2009 15:35:29 +0900 (JST)
Message-ID: <20090205063529.27236.qmail@web3312.mail.ogk.yahoo.co.jp>
To: olivier Thereaux <ot@w3.org>, css-validator <www-validator-css@w3.org>

> > -<?xml version="1.0"
> encoding="$output-encoding-name"?> is
> > required.
> 
> Not required, and actually considered harmful. See
> HTML compatibility  
> guidelines.
> 

http://www.w3.org/TR/xhtml1/#normative

says

>An XML declaration is not required in all XML documents;
however XHTML document authors are strongly encouraged to
use XML declarations in all their documents. Such a
declaration is required when the character encoding of the
document is other than the default UTF-8 or UTF-16 and no
encoding was determined by a higher-level protocol. Here
is an example of an XHTML document. In this example, the
XML declaration is included.

And your DOWNLOAD.html.en about.html.en, ... include XML
declarations.

                                           Makoto

--------------------------------------
Yahoo! JAPAN - Internet safety for children and parents.
http://pr.mail.yahoo.co.jp/security/
Received on Thursday, 5 February 2009 06:36:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:22 GMT