Alan Trick wrote:
On Fri, 2005-11-25 at 10:46 -0400, The Snider's Web wrote:
<!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">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
The meta element is effectively useless in XHTML, assuming you're
serving it with the right MIME type. If you're serving it as text/html,
then you may as well be using HTML 4.
The other thing is that I don't think anybody besides the odd bot ever
looks at those meta tags. That information belongs in your http headers.
However, for text/html, in the absence of the information in a higher
level transport protocol (like HTTP), browsers do look for encoding
information within that meta element. Of course, it is preferred that
such information occur in the HTTP headers (it is also a trivial
exercise to configure your server properly to do that), but that meta
element is better than nothing.
For XHTML, application/xhtml+xml is the preferred MIME type and it's
best to include encoding information within the XML declaration.
--
Lachlan Hunt
http://lachy.id.au/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************