Sto cercando di validare al W3c una pagina (qui ridotta all'osso per semplificare)
Mi da due errori che vorrei mi aiutaste a sistemare.
Preciso che la pagina funziona bene con i principali browser.
Grazie mille.
=====
Below are the results of attempting to parse this document with an SGML parser.
Line 7, column 31: required attribute "TYPE" not specified
<SCRIPT LANGUAGE = "JavaScript">
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>.
--
Line 36, column 10: there is no attribute "NAME"
[img]images/diskat2.gif[/img]
2: <html>
3: <head>
4: <title>prova nr. 01</title>
5: <meta name="description" content="prova">
6: <meta name="keywords" content="provo, proviamo, provare">
7: <SCRIPT LANGUAGE = "JavaScript">
8: <!--
9: window.onerror=null;
10: browserName = navigator.appName;
11: browserVer = parseInt(navigator.appVersion);
12: if(browserName=="Netscape" && browserVer >= 3) ver = "yes";
13: else ver = "yes";
14: if(ver == "yes") {
15: ftdp1 = new Image(); ftdp1.src ="images/diskat2.gif";
16: ftdp2 = new Image(); ftdp2.src ="images/diskat.gif";
17: }
18: function active(imgName)
19: {
20: if (ver == "yes") {
21: img1 = eval(imgName + "1.src");
22: document [imgName].src = img1;
23: }}
24: function inactive(imgName){
25: if (ver == "yes") {
26: img2 = eval(imgName + "2.src");
27: document [imgName].src = img2;
28: }}
29: // -->
30: </SCRIPT>
31: </head>
32: <body>
33: <a name="top"> </a>
34: testo
omesso
<
br>
35: <p align="center"><A HREF="#top" onMouseover = "inactive('ftdp');" onMouseout = "active('ftdp')">
36: [img]images/diskat2.gif[/img]</A></p>
37: </body></html>