Visualizzazione dei risultati da 1 a 4 su 4

Discussione: errore validator

  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2004
    Messaggi
    136

    errore validator

    Ho questa riga

    codice:
    Carica
    il validator di w3c però mi da questo errore e nn capisco perkè.

    ----------------------------------------------------------
    Line 60, column 94: there is no attribute "onClick"

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
    ---------------------------------------------------------

    potete aiutarmi?

  2. #2
    Utente bannato
    Registrato dal
    Dec 2003
    Messaggi
    381
    in teoria nell'href non si dovrebbe usare l'onclick perche' l'evento deve essere specificato all'interno appunto dell'Href ma si puo' fare.....certo l'errore di incompatibilita' ci sara' sempre a meno che tu non voglia usare un'oggetto button
    http://www.w3schools.com/tags/tag_button.asp



  3. #3
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Se stai parlando di XHTML, c'e` un errore di maiuscola:
    esiste onclick, non onClick
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  4. #4
    Utente di HTML.it
    Registrato dal
    Nov 2004
    Messaggi
    136
    Originariamente inviato da Mich_
    Se stai parlando di XHTML, c'e` un errore di maiuscola:
    esiste onclick, non onClick
    grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.