IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Discussion :

Correction w3c

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Nouveau candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    1
    Détails du profil
    Informations personnelles :
    Âge : 34
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 1
    Par défaut Correction w3c
    bonjour,
    voila je débute dans le html et je viens de faire un teste sur w3c j'ai plusieurs erreurs dont je n'arrive pas a corriger :
    Validation Output: 9 Errors

    1. Error Line 24, Column 6: document type does not allow element "br" here; assuming missing "li" start-tag.

    <br />


    2. Error Line 25, Column 4: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li><a href="http://tecs-chamberliere.ifrance.com/photo/photo.html">photo</a></



    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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    3. Error Line 27, Column 4: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li><a href="http://tecs-chamberliere.ifrance.com/calendrier/calendrier.html">c



    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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    4. Error Line 29, Column 4: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li><a href="http://tecs-chamberliere.ifrance.com/index.html">retour acceuil</a



    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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    5. Error Line 30, Column 5: end tag for "li" omitted, but OMITTAG NO was specified.

    </ul>



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

    <br />

    7. Error Line 42, Column 4: document type does not allow element "ol" here; missing one of "object", "ins", "del", "map", "button" start-tag.

    <ol>



    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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    8. Error Line 43, Column 4: document type does not allow element "ol" here; assuming missing "li" start-tag.

    <ol>


    9. Error Line 48, Column 5: end tag for "li" omitted, but OMITTAG NO was specified.

    </ol>



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

    <ol>

    11. Error Line 59, Column 6: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

    <br />



    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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

  2. #2
    Expert confirmé
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Par défaut
    Bonsoir

    Erreur 1 : tu as du mettre une balise <br> tout de suite après un <ul>, il ne faut mettre quelque chose que dans les balises <li> ... </li>

    Erreurs 2 à 4 : tu as mis une balise <li> mais il n'y a pas de balise <ul> ouvrante...

    Erreur 5 : manque une balise fermante </li>

    Erreur 8 et 9 : tu as du mettre des balises <ol> dans des balises <ul> alors que ce qui est attendu ce sont des <li>...

    Pour être plus précis, et pour le reste il faudrait aussi le code html correspondant...

Discussions similaires

  1. [W3C] Validation w3c ok mais pas d'affichage correct en local
    Par dragonno dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 21/02/2009, 22h10
  2. Réponses: 8
    Dernier message: 03/12/2008, 11h59
  3. [W3C] Structure d'un document - est-ce correct ?
    Par antoine974 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 9
    Dernier message: 09/06/2008, 07h20
  4. [HTML] Correction des erreurs de validation W3C
    Par jlb59 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 15
    Dernier message: 24/02/2008, 09h50

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo