Yahoo – META name=”y_key” – causes w3c validator error

Well if you would have tried to add the meta tag in your html given by yahoo to validate your site ownership with yahoo, but once you checked validity of the html of your website it gave you error?

Line 9, Column 28: there is no attribute “content”
<META name="y_key" content="*******************">

And:

Line 9, Column 47: end tag for “meta” omitted, but OMITTAG NO was specified

So how to solve this issue? Well there are couple of ways to solve this issue.

1. Edit the code provided by Yahoo!

Well the simplest and the proper way to solve this issue is to edit the code provided by Yahoo! to all lower case.

From:

<META name="y_key" content="*******************">

To:

<meta name="y_key" content="*******************" />

Please note the ” /” in the end of the tag to remove the Line 9, Column 47: end tag for “meta” omitted, but OMITTAG NO was specified error by the validator.

1. Remove the Yahoo meta tag

Which is ofcourse not applicable in most situation as they advice to keep the meta tag there because they will be re visiting your site for verification.

2. Change from HTML strict to transitional

The validator gives this error if the html doctype is defined as HTML strict. If you change it to Transitional, this error will be gone.

3. Using the upload a file method for Yahoo verification.

That way you won’t be adding any code to your existing html and thus there will be no error in validation of the code because of this alternate way of verification provided by Yahoo!.

Leave a Reply

Your email address will not be published.