Come si inserisce codice js in un xhtml rispettando gli standard?
Si può validare un documento js?
Come si inserisce codice js in un xhtml rispettando gli standard?
Si può validare un documento js?
Dai un'occhiata qua:
http://forum.html.it/forum/showthrea...hreadid=712727
Se la tua domanda era semplicemente sul tag script, dovrebbe essere:
< script type="text/javascript" >
codice js
< /script >
Se vuoi includere un file esterno credo che sia:
< script type="text/javascript" src="file.js" >< /script >
Se poi non è così te lo dirà il validatore del W3C:
http://validator.w3.org/