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

    Problema validazione pagina su W3C

    Salve,
    come da oggetto ho un problema che mi ha fatto impazzire ieri..
    Ve lo propongo qua magari potete darmi qualche delucidazione a riguardo.




    Validation Output: 3 Errors

    1

    codice:
    Error Line 41, Column 87: there is no attribute "target"
    
        …ref="/interventi/Blefaroplastica.html" target="_blank">Blefaroplastica</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).
    
        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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

    2

    codice:
    Error Line 89, Column 142: there is no attribute "align"
    
        …s/Fotogallery Home3.jpg" alt="" align="middle" class="img-indent1" /></a></div…
    
       ✉
    
        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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    3

    codice:
    Error Line 98, Column 11: there is no attribute "align"
    
         <p align="center"><a href="http://www.aristotele.net" target="_new"><img src="…
    
        ✉
    
        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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

    Premetto:
    Il codice l'ho ricontrollato più volte con dreamweaver ma non ho trovato alternative a come è scritto.

    Ps. Validator

  2. #2
    Utente di HTML.it L'avatar di Prill
    Registrato dal
    Oct 2006
    Messaggi
    2,947
    E' lo stesso validatore a darti la risposta, usi un linguaggio di marcatura nella versione più rigida che non prevede l'uso di attributi come target e align (guarda il tuo Doctype)

  3. #3
    Originariamente inviato da Prill
    E' lo stesso validatore a darti la risposta, usi un linguaggio di marcatura nella versione più rigida che non prevede l'uso di attributi come target e align (guarda il tuo Doctype)

    e cosa dovrei modificare? la pagina utilizza questo

    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


    cmq sia c'è ua possibilità di correggere senza stare a modificare il DOCTYPE ?

    il sito è


    Gaetano Gnoni -Cosmetic Surgery


    Grazie mille anticipatamente

  4. #4
    Si, certo W3C corregge.
    Tis piego come faccio io.
    Clicco Validate by Direct Input e inserisco quello che voglio controllare, e W3C ti dice quanti errori ci sono. Sempre nella stessa pagina nella sezione Optiom, dai la spunta su Validate error pages e su Clean up Markup with HTML-Tidy. Poi clicchi Revalidate e in fondo alla pagina ti da la "versione" corretta.
    Spero di essere stato abbastanza chiaro.

  5. #5
    Originariamente inviato da luca1962
    Si, certo W3C corregge.
    Tis piego come faccio io.
    Clicco Validate by Direct Input e inserisco quello che voglio controllare, e W3C ti dice quanti errori ci sono. Sempre nella stessa pagina nella sezione Optiom, dai la spunta su Validate error pages e su Clean up Markup with HTML-Tidy. Poi clicchi Revalidate e in fondo alla pagina ti da la "versione" corretta.
    Spero di essere stato abbastanza chiaro.
    Risolto, grazie mille

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.