Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2010
    Messaggi
    132

    W3C problema validazione

    ciao a tutti questo è il codice

    codice:
     <hr size="1" noshade="" align="left" width="717" />
      <div class="certificati">    
     <a href="http://validator.w3.org/check?uri=referer">
    </a>
       </div> 
    <div id="footer">Copyright  2011<span class="foot_right"> Versione Grafica </span></div>
    l'errore sta nel TAG <hr ed è il seguente



    Error Line 1, Column 2: no document type declaration; will parse without validation <hr size="1" noshade="" align="left" width="717" /> ✉ The document type could not be determined, because the document had no correct DOCTYPE declaration. The document does not look like HTML, therefore automatic fallback could not be performed, and the document was only checked against basic markup syntax. Learn how to add a doctype to your document from our FAQ, or use the validator's Document Type option to validate your document against a specific Document Type.

  2. #2
    Utente di HTML.it L'avatar di Prill
    Registrato dal
    Oct 2006
    Messaggi
    2,947
    Hai sottoposto a validazione solo quel codice tramite immissione diretta? ti dice che non c'è un Doctype e ti suggerisce di leggere una faq. E' l'intera pagina che devi inserire.
    Invece gli errori segnalati per hr, a seconda del Doctype utilizzato, potrebbero poi essere sugli attributi

  3. #3
    Utente di HTML.it
    Registrato dal
    Nov 2010
    Messaggi
    132
    ho reinserito tutta la pagina e gli errori sono i seguenti

    Error Line 28, Column 32:

    syntax of attribute value does not conform to declared value
    <hr size="1" noshade="" align="left" width="717" > ✉
    The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; the variant “selected=""” is not allowed.

    Error Line 28, Column 32:
    value of attribute "noshade" cannot be "";
    must be one of "noshade" <hr size="1" noshade="" align="left" width="717" >
    ✉ The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; a value like “selected="true"” is not allowed.

    Error Line 28, Column 60:
    end tag for "hr" omitted, but OMITTAG NO was specified <hr size="1" noshade="" align="left" width="717" >
    ✉ You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".


    non capisco cosa non va bene negli hr...ho porvato a mettere tutti gli attributi anche in un css ma nn cambia nulla...

  4. #4
    Utente di HTML.it L'avatar di Prill
    Registrato dal
    Oct 2006
    Messaggi
    2,947
    1. il valore per l'attributo noshade deve essere specificato, noshade="noshade";
    2. manca la chiusura del tag, stai evidentemente usando xhtml e dovrai avere <hr size="1" noshade="noshade" align="left" width="717" />;
    Inoltre noshade, size eccetera sono comunque attributi deprecati, da passare via css, se guardi http://www.w3schools.com/tags/tag_hr.asp e clicchi sui vari attributi trovi tutte le indicazioni per farlo (solo la resa del noshade è un po' più tortuosa coi fogli di stile)

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.