Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Mar 2009
    Messaggi
    4

    Aiuto validazione codice contatore sito

    salve gente

    ho un problema con la validazione nel sito w3c con 8 errori del seguente codice




    <a href="http://c-o-u-n-t.com" target="_blank">
    </a>



    cosa modifico??
    chi mi aiuta??

    grazie



    riporto gli errori rilevati:


    Validation Output: 8 Errors

    1. Error Line 182, Column 39: Attribute "target" exists, but can not be used for this element.

    <a href="http://c-o-u-n-t.com" target="_blank">



    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. Error Line 182, Column 47: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

    <a href="http://c-o-u-n-t.com" target="_blank">



    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    3. Error Line 183, Column 114: Attribute "border" exists, but can not be used for this element.

    …e=greenyelo&amp;prog=unique" border="0" alt="Contatore Visite" title="Contato



    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.
    4. Error Line 183, Column 169: end tag for "img" omitted, but OMITTAG NO was specified

    …Visite" title="Contatore Visite"></a>



    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    5. Info Line 183: start tag was here

    g<img src="http://001.c-o-u-n-t.com/count-036.pl?count=rickardcounter3&amp;type=g

    6. Error Line 183, Column > 80: XML Parsing Error: Opening and ending tag mismatch: img line 183 and a

    …6.pl?count=rickardcounter3&amp;type=greenyelo&amp ;prog=unique" border="0" alt…


    7. Error Line 191, Column 7: XML Parsing Error: Opening and ending tag mismatch: a line 182 and body

    </body>


    8. Error Line 192, Column 7: XML Parsing Error: Opening and ending tag mismatch: body line 40 and html

    </html>


    9. Error Line 192, Column 7: XML Parsing Error: Premature end of data in tag html line 2

    </html>

  2. #2
    Utente di HTML.it L'avatar di Prill
    Registrato dal
    Oct 2006
    Messaggi
    2,947
    Stai probabilmente usando xhtml, il tag img va chiuso: , da sostituire nel link le occorrenze di & con & amp; (tutto attaccato, scrivo staccato per problemi di visualizzazione).
    Col target puoi fare ben poco se usi Xhtml Strict, riguardo invece al secondo errore riguarda l'errata collocazione del link (per esempio potrebbe trovarsi direttamente in body invece che in un div o in un paragrafo o in altro elemento, ma non vedendo la tua pagina non è possibile dire)

  3. #3
    Utente di HTML.it
    Registrato dal
    Mar 2009
    Messaggi
    4
    grazie mille!!!!!!!

    sono rimasti solo 2 errori!!!

    se vuoi osso inviarti anche la pagina in questione!!

    ti posto l immagine cosi vedi dove sono evidenziati gli errori:


  4. #4
    Utente di HTML.it L'avatar di Prill
    Registrato dal
    Oct 2006
    Messaggi
    2,947
    Sul primo errore ti ho detto, prova a inserire il link all'interno di un div.
    Per quanto riguarda invece la rimozione del bordo puoi ricorrere ai css, eventualmente, anche se sarebbe preferibile evitarle, puoi anche usare una dichiarazione di stile in linea, eliminando l'attributo border e inserendo al suo posto style="border:none"

  5. #5
    Utente di HTML.it
    Registrato dal
    Mar 2009
    Messaggi
    4
    grazie mille ancora!!!!!!!!

    ho risolto!!!

    ho modificato anche il target blank

    questo è il codice finale, (può essere utile anche ad altri):

    <div>

    <a onclick="window.open(this.href,'_blank');return false;" href="http://c-o-u-n-t.com">
    </a>

    </div>


    saluti

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 © 2026 vBulletin Solutions, Inc. All rights reserved.