How to remove Validation error with Alexa PageRank Widget Box

If you added the Alexa Page rank widget box to your website and might have noticed that now if you try to validate your website HTML source code, it gives validation errors.

Such as:

Error Line 608, Column 84: there is no attribute “type”
… <div><SCRIPT type='text/javascript' language='JavaScript' …

The code provided by Alexa looks some what like this:

<SCRIPT type=’text/javascript’ language=’JavaScript’ src=’http://xslt.alexa.com/site_stats/js/t/b?url=nabtron.com’></SCRIPT>

To remove the validation errors you need to edit the widget code to have small letters only, like:

<script type=’text/javascript’ language=’JavaScript’ src=’http://xslt.alexa.com/site_stats/js/t/b?url=nabtron.com’></script>

It will remove the errors caused by the alexa page rank widget on your website upon validation from w3c html validator.

4 comments on “How to remove Validation error with Alexa PageRank Widget Box

Leave a Reply

Your email address will not be published.