Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    W3C ed attributo target=new

    Salve,
    sto impazzendo con la validazione di una pagina html in cui son presenti degli attributi: target="new" al classico collegamento ipertestuale <A HREF="">

    In pratica quando vado a validare la pagina mi da a schermo questo che segue (vedi QUOTE).
    Come consigliato dal consorzio (e.g. you must use the "Transitional" document type to get the "target" attribute) modifico il document type con questo:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    ma purtroppo il risultato non cambia O_o Come posso "fixare" il problema ? E forse possibile settare l'attributo direttamente nel file .css forse ?

    Grazie,
    pao

    Line 51, column 198: there is no attribute "TARGET"

    ...alid CSS!" title="Valid CSS!" target=new></a>

    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).

  2. #2
    PS: ho provato pure con <A HREF="" target="_blank">, non funziona lo stesso tolgo il target e la pagina me la valida


  3. #3

  4. #4
    Target è un attributo, non un tag.

    Quello che non capisco è che lui effettivamente ha la DTD per html, che il target lo supporta. :master:

  5. #5
    Corretto!!!
    Perchè non posti il codice o meglio ancora metti il link alla pagina?

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.