[RESOLVED] Validate warning on java script
Been getting this warning by the w3 validator for some time and have been ignoring it:
The language attribute on the script element is obsolete. You can safely omit it.
<script language="javascript">
i think this means i can write like this:
<script>
is this true ?
Re: Validate warning on java script
Yup, you can safely omit it.
If you go to sites like Google's Hosted Libraries, you'll notice they omit them in the snippets they give you.
I believe it has actually been deprecated since XHTML 1.0.
Re: [RESOLVED] Validate warning on java script
I have a habit to use the whole + type="text/javascript" and that is because VS will issue a warning will i do not do that, that messes with my other warnings and loose me time on debug.
I am not sure if you used a vbscript tho, will it pass the validation?
Re: [RESOLVED] Validate warning on java script
yes it passes validation just gives warnings
saying obsolete, you can safely omit it