shopkanji
03-25-2005, 12:53 PM
I wasn’t sure if this was an HTML question of a JavaScript question. Since I’m dealing with HTML validation, I’m putting it in this forum. Forgive me if I put it in the wrong forum.
In my HTML code, I have a script tag with source.
<script language="JavaScript" src="float.js"></script>
This works great, but when I try to validate my HTML, I get two errors, “there is no attribute ‘LANGUAGE’” and “required attribute ‘TYPE’ not specified”.
I redid my script tag so it read like this:
<script type="JavaScript" src="float.js"></script>
My page now validates, but the javascript doesn’t work.
I even tried to have both language and type, to see if I only get one error and it still to work, but no luck:
<script type="JavaScript" language="JavaScript" src="float.js"></script>
What am I doing wrong?
I want my javascript to work, but I’ve worked really hard to have valid HTML, and these are my only errors.
In my HTML code, I have a script tag with source.
<script language="JavaScript" src="float.js"></script>
This works great, but when I try to validate my HTML, I get two errors, “there is no attribute ‘LANGUAGE’” and “required attribute ‘TYPE’ not specified”.
I redid my script tag so it read like this:
<script type="JavaScript" src="float.js"></script>
My page now validates, but the javascript doesn’t work.
I even tried to have both language and type, to see if I only get one error and it still to work, but no luck:
<script type="JavaScript" language="JavaScript" src="float.js"></script>
What am I doing wrong?
I want my javascript to work, but I’ve worked really hard to have valid HTML, and these are my only errors.