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.



>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


Yahoo! JAPAN - Internet safety for children and parents.
Received on Thursday, 5 February 2009 06:36:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:45 UTC