PDA

View Full Version : Whats wrong with my Meta Tags ???



Uzair
Mar 15th, 2007, 10:48 AM
W3C is not validating my meta tags.
Please tell me whats wrong with them?
Here r my meta tags...

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
<META NAME="keywords" CONTENT="my keywords" />
<META NAME="description" CONTENT="my description" />
<META NAME="copyright" CONTENT="Copyrights 2007" />
<META NAME="author" CONTENT="author name" />
<META HTTP-EQUIV="expires" CONTENT="Never" />
<META NAME="robots" CONTENT="ALL" />
<META NAME="distribution" CONTENT="Global" />

Here r the errors...
Error Line 4 column 17: there is no attribute "HTTP-EQUIV".
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
Error Line 4 column 40: there is no attribute "CONTENT".
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
Line 4 column 73: element "META" undefined.
...e" CONTENT="text/html; charset=iso-8859-1" />
Error Line 5 column 11: there is no attribute "NAME".
<META NAME="keywords" CONTENT="my keywords
Line 5 column 228: element "META" undefined.
...my keyword" />
Error Line 6 column 253: element "META" undefined.
...n search engine optimization(seo)." />
Error Line 7 column 74: element "META" undefined.
..."Copyrights 2007" />
Error Line 8 column 52: element "META" undefined.
<META NAME="author" CONTENT="author" />
Error Line 9 column 44: element "META" undefined.
<META HTTP-EQUIV="expires" CONTENT="Never" />
Error Line 10 column 35: element "META" undefined.
<META NAME="robots" CONTENT="ALL" />
Error Line 11 column 44: element "META" undefined.
<META NAME="distribution" CONTENT="Global" />

Pennimus
Mar 15th, 2007, 11:10 AM
Is there any chance you're trying to validate this document as strict XHTML? Which, of course, is supposed to be written in lower case.

Uzair
Mar 15th, 2007, 11:16 AM
nopes, I'm validating using transitional doc-type
here's my Doctype...

<!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">

Pennimus
Mar 15th, 2007, 11:33 AM
Perhaps I shouldn't have said strict XHTML. Isn't it the case that any XHTML has to be in lower case?

mlseim
Mar 15th, 2007, 11:51 PM
Uzair ....

Humor us ... make them all lower-case and report back to us with results.

In fact, use all lower-case for tags and properties.