Click to See Complete Forum and Search --> : Validator errors on my html page, please assist with why?


Askalon
03-11-2004, 03:41 PM
Using a local copy of a file that I will uploading later, but after running it through the w3 validator, it comes up 6 error's (3 belong to my image map that will be disapperaing), 2 belong to my java script at the bottom which I could lose as well, but the one that confuses me is from this line:

Line 49, column 11: element "u" undefined.

<b><u>FREE</u></b>.</p>



There is a red mark at the <u>. Why would it not understand this tag ?


For the java script. it says

Line 81, column 23: there is no attribute "language".

<script language="javascript" src="javascript/update.js"></script>

(which the mark is at the beginning of the "javascript")

and the last one is :

Line 81, column 62: required attribute "type" not specified .

<script language="javascript" src="javascript/update.js"></script>



Which the mark is at the first >.

Any hints why this throws up errors like this? I never knew there was a type to javascript and I thought you always had to define the langugae of the script.

I am attacching the file for the sake of it in case someone wants to look at it.

My CSS passes muster with 0 errors. I can provide that as well if needed.

DaveSW
03-11-2004, 03:49 PM
1) <u> is depreciated... use a span with css underline.
2) I think it should be type="text/javascript", and that answers both 2 and 3.

Askalon
03-12-2004, 10:49 AM
ok, I haven't gotten to the <span> yet, so that will have to wait, but when i try to validate the next page it tells me it does not allow a tag of <h2>, <h3> or <p> in a lot of places. This is unreasonable as they are right where they should be. If you care to take a look, I have attached it.

Edit: I found one mistake that i was able to fix several of the errors. i am still trying on some though. I have reloaded the file.

Edit2: I finally fixed all my errors except for the three from the menu map (which i do not care about). I guess I just jumped the gun a bit on this.