Partage
  • Partager sur Facebook
  • Partager sur Twitter

Erreur de validation

    26 juillet 2006 à 12:59:49

    Bonjour, j'ai beau me creser la tête, je ne trouve pas, je viens donc vous demandé un peu d'aide SVP :)

    Voila mon code xhtml :


    Citation : code xhtml

    <ul>
    <li><strong>Tuning</strong></li>
    <li><a href="page.php?cat=Tutaux">Tutaux</a></li>
    <li><a href="page.php?cat=Tests">Tests</a></li>
    <li><a href="page.php?cat=Mods">Mods</a></li>
    <li><a href="page.php?cat=watercooling">Watercooling</a></li>
    <li><strong>Informatique</strong></li>
    <li><a href="http://e-tuning.jeun.fr/">Hardware</a></li>
    <li><a href="page.php?cat=Software">Software</a></li>
    <li><a href="page.php?cat=Overclocking">Overclocking</a></li>
    <li><a href="page.php?cat=Tests_info">Tests</a></li>
    <li><strong>E-Tuning</strong></li>
    <li><a href="http://e-tuning.jeun.fr/">Forum</a></li>
    <li><a href="page.php?cat=Articles">Articles</a></li>
    <li><a href="page.php?cat=Download">Download</a></li>
    <li><div class="fin"><a href="proposer.phps">Proposer</a></div></li>
    </ul>

    <ul>
    <li><strong>Partenaires</strong></li>
    <li><a href="http://www.siteduzero.com">Le Site du Zéro</a></li>
    <li><a href="http://www.jeuxvideo.com/">Jeux vidéo.com</a></li>
    <li><a href="http://www.jamendo.com/fr/">Jamendo</a></li>
    <li><div class="fin"><a href="partenaire.php">Être partenaire</a></div></li>
    </ul>



    et ce qu'en dit le W3C :

    Citation : W3C


    # Error Line 34 column 3: document type does not allow element "ul" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <ul>

    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;
    # Error Line 52 column 3: document type does not allow element "ul" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <ul><li><strong>Partenaires</strong></li>




    Et ensuite :


    Citation : xhtml

    <div id="corps">
    <p><h1>Bienvenue</h1>Un processeur est normalement.....




    Citation : W3C

    Error Line 110 column 10: document type does not allow element "h1" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <p><h1>Bienvenue</h1>Un processeur est normalement prévu pour fonctionner



    Je n'arrive vraiment pas à les corriger
    pouvez vous m'aider svp ?
    • Partager sur Facebook
    • Partager sur Twitter
      26 juillet 2006 à 13:04:02

      pour la première erreur tu ne peux pas mettre de balise de type block dans un li dans remplace ton div class="fin" par span class="fin"

      pour la deuxième même chose tu ne peux pas mettre un h1 dans un p
      • Partager sur Facebook
      • Partager sur Twitter
        26 juillet 2006 à 13:52:25

        Merci, c'est valide, mais la propriéter ne marche plus :

        Citation : XHTML

        <div id ="menu_gauche">
        <div id ="element_menu">

        <ul>
        <li><strong>Tuning</strong></li>
        <li><a href="page.php?cat=Tutaux">Tutaux</a></li>
        <li><a href="page.php?cat=Tests">Tests</a></li>
        <li><a href="page.php?cat=Mods">Mods</a></li>
        <li><a href="page.php?cat=watercooling">Watercooling</a></li>
        <li><strong>Informatique</strong></li>
        <li><a href="http://e-tuning.jeun.fr/">Hardware</a></li>
        <li><a href="page.php?cat=Software">Software</a></li>
        <li><a href="page.php?cat=Overclocking">Overclocking</a></li>
        <li><a href="page.php?cat=Tests_info">Tests</a></li>
        <li><strong>E-Tuning</strong></li>
        <li><a href="http://e-tuning.jeun.fr/">Forum</a></li>
        <li><a href="page.php?cat=Articles">Articles</a></li>
        <li><a href="page.php?cat=Download">Download</a></li>
        <li><span class="fin"><a href="proposer.phps">Proposer</a></span></li>
        </ul>

        <ul>
        <li><strong>Partenaires</strong></li>
        <li><a href="http://www.siteduzero.com">Le Site du Zéro</a></li>
        <li><a href="http://www.jeuxvideo.com/">Jeux vidéo.com</a></li>
        <li><a href="http://www.jamendo.com/fr/">Jamendo</a></li>
        <li><span class="fin"><a href="partenaire.php">Être partenaire</a></span></li>
        </ul>

        </div>

        </div>


        Citation : CSS


        .fin
        {
        border-bottom : 2px solid #6663cb;
        }



        La propriété border bottom ne marche plus, pourquoi svp ?
        • Partager sur Facebook
        • Partager sur Twitter
          26 juillet 2006 à 13:58:22

          pourquoi creer un class alors que tu pourrais mettre ta propriete sur le ul
          • Partager sur Facebook
          • Partager sur Twitter
            26 juillet 2006 à 14:09:29

            non, je peux pas, car sinon les border top et bottom se toucherai et deviendrai 2*plus grosse :s

            comemnt faire alors svp ?
            • Partager sur Facebook
            • Partager sur Twitter
              26 juillet 2006 à 14:17:17

              en mettant un margin-bottom a ul les bordures ne se toucheront pas
              • Partager sur Facebook
              • Partager sur Twitter
                26 juillet 2006 à 15:15:23

                j'ai mis :

                #element_menu ul
                {
                border-bottom: 2px solid #6663cb;
                }

                le problémme c'est que mon menu est décaller sur la droite ,e t que la bordure continue jusqu'a gauche :s
                • Partager sur Facebook
                • Partager sur Twitter

                Erreur de validation

                × 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