Click to See Complete Forum and Search --> : Validation error "TYPE"


Duke Will
07-25-2003, 12:22 PM
I validated (thanks Pyro for link) http://www.dukewill.com/notice.html and corrected about 12 errors and have one left...

Line 4, column 46: required attribute "TYPE" not specified (explain...).
<SCRIPT language=JavaScript1.2 src="resize.js"></SCRIPT>

My brother gave me that line... I don't understand what resize.js is either.

pyro
07-25-2003, 12:31 PM
That line is calling an external .js file.

The language attribute has been depreciated in favor of type, so that line should look like this:

<script type="text/javascript" src="resize.js"></script>

Charles
07-25-2003, 12:32 PM
Change that to <script type="text/javascript" src="resize.js"></script>.

neenach2002
07-25-2003, 01:02 PM
oh great!...so "script language" is deprecated huh?...oh boy...my book uses that! if I replace everywhere it says "script language" with "script type" will it be fine?

pyro
07-25-2003, 01:08 PM
That aspect of it, yes... Perhaps not the aspect of it degrading gracefully for the 13% who do not use JS?