Partage
  • Partager sur Facebook
  • Partager sur Twitter

Ma liste n'est pas valide

Sujet résolu
Anonyme
    9 septembre 2006 à 10:19:30

    Bonjour, j'ai essayé de valider ma page, mais le validateur me mais 28 erreurs à cause de cette liste à puce. Et bon, il me semble qu'elle est correct... regardez le code, puis ensuite les erreurs :-/


    <?xml version="1.0" encoding="ISO-8859-15"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
      <head>
        <meta http-equiv="Content-type" content="application/xhtml+xml; charset=ISO-8859-15" />
      </head>

      <body>
          <ol>
            <li></li>
            <li></li>
            <ol>
              <li></li>
              <ol>
                <li></li>
                <li></li>
              </ol>
              <li></li>
            </ol>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
          </ol>
      </body>
    </html>


    Citation : W3C


    1. Error Line 8 column 8: end tag for "head" which is not finished.

    </head>

    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, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.

    &#9993;
    2. Error Line 14 column 11: document type does not allow element "ol" here; assuming missing "li" start-tag.

    <ol>

    &#9993;
    3. Error Line 16 column 13: document type does not allow element "ol" here; assuming missing "li" start-tag.

    <ol>

    &#9993;
    4. Error Line 20 column 13: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    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>").

    &#9993;
    5. Error Line 21 column 12: 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 ">".

    &#9993;
    6. Info Line 16 column 10: start tag was here.

    <ol>

    7. Error Line 22 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    8. Error Line 23 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    9. Error Line 24 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    10. Error Line 25 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    11. Error Line 26 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    12. Error Line 27 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    13. Error Line 28 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    14. Error Line 29 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    15. Error Line 30 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    16. Error Line 31 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    17. Error Line 32 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    18. Error Line 33 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    19. Error Line 34 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    20. Error Line 35 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    21. Error Line 36 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    22. Error Line 37 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    23. Error Line 38 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    24. Error Line 39 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    25. Error Line 40 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    26. Error Line 41 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    27. Error Line 42 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    28. Error Line 43 column 11: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.

    <li></li>

    &#9993;
    29. Error Line 44 column 10: end tag for "li" omitted, but OMITTAG NO was specified.

    </ol>

    &#9993;
    30. Info Line 14 column 8: start tag was here.

    <ol>



    Merci de vôtre futur aide.
    • Partager sur Facebook
    • Partager sur Twitter
      9 septembre 2006 à 10:23:44

      essaie voir avec <ul> pas <ol> pour tester
      • Partager sur Facebook
      • Partager sur Twitter
      Anonyme
        9 septembre 2006 à 10:25:50

        YoyoS il y a autant d'erreur avec ul
        • Partager sur Facebook
        • Partager sur Twitter
          9 septembre 2006 à 10:26:48

          Les listes s'imbriquent de cette façon.
          <ol>
            <li></li>
            <li>
              <ol>
                <li>
                  <ol>
                    <li></li>
                    <li></li>
                  </ol>
                 </li>
                <li></li>
              </ol>
            </li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
          </ol>
          • Partager sur Facebook
          • Partager sur Twitter
          Anonyme
            9 septembre 2006 à 10:28:33

            Merci beaucoup Strucky, c'est exactement ça^^
            • Partager sur Facebook
            • Partager sur Twitter
              9 septembre 2006 à 10:31:29

              a oui lol c'est malin :) vu que <li></li> est comme une "cellule" :)
              • Partager sur Facebook
              • Partager sur Twitter

              Ma liste n'est pas valide

              × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
              × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
              • Editeur
              • Markdown