Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2005
    Messaggi
    654

    Validazione al W3C di un'ancora

    Questo è quello che mi dice il validatore. L'errore è localizzato in un'ancora (creata con un editor wysiwyg): ne ho create altre nello stesso documento e non mi dà nessun problema, mentre qui mi dice che l'attributo "name" in <a> non esiste...
    Come posso risolvere qualcosa che da altre parti funziona?



    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.

    Line 86, column 319: there is no attribute "name"

    …lign: center"> POF 2007/2008<a name="titolo" title="titolo"></a>
    </h2>

  2. #2
    Frontend samurai L'avatar di fcaldera
    Registrato dal
    Feb 2003
    Messaggi
    12,924
    con quale doctype stai cercando di validare? Con i doctype più restrittivi (e in generale, in un prossimo futuro) name non è e non sarà più un attributo valido: sostituisci name con id
    Vuoi aiutare la riforestazione responsabile?

    Iscriviti a Ecologi e inizia a rimuovere la tua impronta ecologica (30 alberi extra usando il referral)

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2005
    Messaggi
    654
    Questo non lo sapevo... infatti con id non dà problemi
    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.