<!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" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Is the correct layout that should be used to validate your template
(index.php) file
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of designer
Sent: Monday, 16 January 2006 1:34 AM
To: webstandards group
Subject: [WSG] content type etc
Hi All,
More questions as I battle to understand stuff about headers and xhtml . . .
My question is about the two alternative meta headers:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> or
<meta http-equiv="Content-Type" content="application/xhtml+xml;
charset=utf-8" />
Someone (pretty sure it was Lachlan) said that the "content="text/html;"
(or indeed content="application/xhtml+xml;) bit was a waste of time and
didn't do anything. So am I best changing it to simply:
<meta http-equiv="Content-Type" content="charset=utf-8" />
I would then end up with :
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> <head>
<title>Tester</title> <meta http-equiv="Content-Type"
content="charset=utf-8" /> <head>
etc.
Is that 'sensible'? Is it 'correct'?
Sorry if this is dumb.
--
Best Regards,
Bob McClelland
Cornwall (UK)
www.gwelanmor-internet.co.uk
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************