ken_gal
Status: New User - Welcome
Joined: 13 Apr 2006
Posts: 4
Location: UK
Back to top
Posted: Apr 15, 06, 6:19    VALIDATOR.W3C: ... required attribute "TYPE" not s
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.
vkaryl
Status: Contributor
Joined: 31 Oct 2004
Posts: 273
Location: back of beyond - s. UT, closer to Vegas than SLC
Back to top
Posted: Apr 17, 06, 7:24    
Instead of "script language" (which is deprecated) you need to use script type="text/javascript".
ken_gal
Status: New User - Welcome
Joined: 13 Apr 2006
Posts: 4
Location: UK
Back to top
Posted: Apr 18, 06, 23:04    VALIDATOR.W3C: ... required attribute "TYPE" not s
The suggested remedy worked perfectly. Many thanks for your help.
vkaryl
Status: Contributor
Joined: 31 Oct 2004
Posts: 273
Location: back of beyond - s. UT, closer to Vegas than SLC
Back to top
Posted: Apr 19, 06, 18:37    
You're welcome!
Display posts from previous:   

All times are GMT - 8 Hours