Forum Moderators: open

Message Too Old, No Replies

Validation Errors

         

malcolmcroucher

7:49 am on Jul 31, 2008 (gmt 0)

10+ Year Member




I have a resizing script for my windows so i always opens at the same size .

This is it below
<script src="resizing_window.js">

I get the validation erro below for it ? Does it help to fix it or is it necessary or should it be fixed ?

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.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

Regards

Malcolm

deMorte

12:10 pm on Jul 31, 2008 (gmt 0)

10+ Year Member



I think that HTML tag <script> always needs the type attribute. Maybe you could try this:

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

[edited by: deMorte at 12:10 pm (utc) on July 31, 2008]

rocknbil

4:46 pm on Jul 31, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ya' also need to close it.

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