Re: Invalid code

From: Date: Sun, 29 Nov 2009 15:04:34 +0000
Subject: Re: Invalid code
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-6638@lists.php.net to get a copy of this message
On Sun, Nov 29, 2009 at 04:01, Administrator <winner5@interia.pl> wrote: > Dear webmaster, > I would like to notice that your source code of the website is not quite > valid. The code: > '<meta http-equiv="Content-Type" content="text/html; > charset=utf-8"/>' > is such an irony, because the site is written in XHTML, sent to the browser > as text/html, and the source fragment is in xhtml syntax, but contains > html-specific mime type. If you decide to use XHTML, please do it correctly: > '<meta http-equiv="Content-Type" content="application/xhtml+xml; > charset=&quot;utf-8&quot;"/>'. This is not a good example for people who > learn to write websites with PHP/(X)HTML. (your charset entry is wrong) I assume you send similar mail to the w3.org webmasters (they use the same line on w3.org for their xhtml pages.. :))? Please do a quick web search to see why we say the content is text/html (and almost all other xhtml web pages). -Hannes

« previous php.webmaster (#6638) next »