VALIDATOR.W3C: ... required attribute "TYPE" not s
ken_gal
Status: New User - Welcome
Joined: 13 Apr 2006
Posts: 4
Location: UK
Reply Quote
I have a newproblem when trying to validate my html code with the W3C validator which gives me the following message:

This page is not Valid HTML 4.01 Transitional!

Error Line 524 column 117: required attribute "TYPE" not specified.
...1234567&amp;style=hidden&amp;offset=0"></script>

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

THE FULL JAVASCRIPT CODE WITH THE OFFENDING LINE:
<script language="Javascript" src="http://nextgenstats.com/cgi-bin/log.pl?site=1234567&amp;style=hidden&amp;offset=0"></script>
<noscript><a href="http://www.nextgenstats.com"><img src="http://www.nextgenstats.com/cgi-bin/statsplus.pl?1234567" alt="counter"></a>
</noscript>

Any help would be much appreciated.
Back to top
vkaryl
Status: Contributor
Joined: 31 Oct 2004
Posts: 273
Location: back of beyond - s. UT, closer to Vegas than SLC
Reply Quote
Instead of "script language" (which is deprecated) you need to use script type="text/javascript".
Back to top
VALIDATOR.W3C: ... required attribute "TYPE" not s
ken_gal
Status: New User - Welcome
Joined: 13 Apr 2006
Posts: 4
Location: UK
Reply Quote
The suggested remedy worked perfectly. Many thanks for your help.
Back to top
vkaryl
Status: Contributor
Joined: 31 Oct 2004
Posts: 273
Location: back of beyond - s. UT, closer to Vegas than SLC
Reply Quote
You're welcome!
Back to top
Display posts from previous:   

All times are GMT - 8 Hours