Forum Moderators: open
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> and still validate.
Now, I would like to replace the following:
<meta http-equiv="imagetoolbar" content="false">
<meta name="MSSmartTagsPreventParsing" content="TRUE"> or even
<meta name="description" content="whatever"> by generating them as headers in, say, PHP. My question is, are meta tags http headers, and what is the difference between the "http-equiv" and "name"? Would my idea work?
The http-equiv attribute can be used in place of the name attribute and has a special significance when documents are retrieved via the Hypertext Transfer Protocol (HTTP). HTTP servers may use the property name specified by the http-equiv attribute to create an [RFC822]-style header in the HTTP response. Please see the HTTP specification ([RFC2616]) for details on valid HTTP headers.
If I understand this correctly, there is not much difference on the WWW between <meta name> and <meta http-equiv>.
Theoretically your idea of replacing meta tags by regular http headers might work. The point is: will user agents interpret it correctly?
From personal experience I know that PICS labels (rating information) can be put in http headers AND still work in IE. But I sincerely doubt that any search engine spider will check the headers for 'description' or 'content'. Maybe you could try to send a imagetoolbar header and see what happens?
AFAIK, 'MSSmartTagsPreventParsing' has not been implemented (yet?) so you can safely leave that out anyway.
Notwithstanding, when I sent imagetoolbar:false as a header rather than as a meta tag, IE6 ignores it, despite the fact that the meta tag uses http-equiv. However, sending PICS label as a header is very useful to know!