htmlnewbie23 Posted July 31, 2007 Share Posted July 31, 2007 I have one of those free visitor counters which are created by inserting the code they give you into your page. Unfortunately the W3 validator is having a problem with this code and I am reluctant to change it because I might break it. The error I get is:"required attribute "TYPE" not specified.…ats.com/cgi-bin/afc.cgi?usr=00812623">"The problem code is <!-- BEGIN ADDFREECOUNTER CODE - AddFreeCounter need of AddFreestats button code! htpp://www.addfreestats.com--> <script language="javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623"> </SCRIPT> <noscript> <a href="http://www.addfreestats.com">AFC</a> </noscript> <!-- END AddFreeCounter CODE --> Should I just ignore the error? Link to comment Share on other sites More sharing options...
jesh Posted July 31, 2007 Share Posted July 31, 2007 Nah, you can fix that real easily. Rather than this: <script language="javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623"> Use this: <script language="javascript" type="text/javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623"> Link to comment Share on other sites More sharing options...
htmlnewbie23 Posted July 31, 2007 Author Share Posted July 31, 2007 Nah, you can fix that real easily. Rather than this:<script language="javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623"> Use this: <script language="javascript" type="text/javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623"> So, you've added type="text/javascript"Correct?Thanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted July 31, 2007 Share Posted July 31, 2007 You can also remove the language attribute, type replaces it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.