Visualizzazione risultati 1 fino 2 di 2

Discussione: 2 errori W3C

  1. #1
    Guest

    Unhappy 2 errori W3C

    Sono andato su questo sito http://validator.w3.org e mi da 2 errori, voglio sapere come risolverli.

    Ecco il risultato dei due errori:

    Validation Output: 2 Errors

    Line 88, Column 32: there is no attribute "target"
    <div class="av_site"><a target="_blank" href="http://it.altervista.org/crea-sit…

    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.

    Line 239, Column 8: end tag for "ul" which is not finished
    </ul>

    Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

    Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.
    Grazie a tutti.
    Ultima modifica di dreadnaut : 05-09-2012 alle ore 10.51.47 Motivo: + tag [quote], leggibilità

  2. #2
    L'avatar di alemoppo
    alemoppo non è connesso Staff AV
    Data registrazione
    24-08-2008
    Residenza
    PU / BO
    Messaggi
    22,148

    Predefinito

    Uhm, a me invece da 7 errori.

    Il primo, è che hai aperto il tag <head> 2 volte.

    Il secondo, è che nella riga 240 devi sostituire i vari
    Codice HTML:
    &
    con:
    Codice HTML:
    &amp;
    Il terzo è che devi eliminare l'attributo target (88° riga), perché nel xhtml strict non è permesso. Quindi puoi scegliere: o la validazione, o il target_blank.

    In questo modo, a me lo da validato.

    Gli altri errori erano conseguenza di questi.

    Ciao!
    Ultima modifica di alemoppo : 05-09-2012 alle ore 12.49.48

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •