Partage
  • Partager sur Facebook
  • Partager sur Twitter

Erreur dans ma page

après validation W3C

Sujet résolu
    22 octobre 2006 à 18:37:34

    Salut à tous, j'ai voulu tester ma bannière/menu que j'utilise en temps qu'include, seulement je ne comprend pas les erreurs trouvées.

    Voici le code source de la page

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
         <head>
             <title>Acceuil/PC Facile</title>
             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
         </head>
    <body>
             <div id="bannière">
             <?php
    // On inclue le haut de la page
             include("includes/bannière.php");
             ?>
             </div>


    <!-- Le 1er corps ou se trouve les présentations -->

         <div id="corps">
             <h2> <em> <q>Bienvenue sur le site des astuces pour PC.</q> </em> </h2>
                             <p>                
                                 <ul>
                             <li> <strong>Pourquoi la création de ce site?</strong>: Tout simplement par envie, j'ai réussi à trouver des astuces et conseils que je désire partager avec vous cher visiteurs.</li>
                                         <li> <strong>Que trouve-t-on dans ce site?</strong>: Pour ne pas refaire un site d'
    aide informatique, alors qu'au début c'était prévu, j'ai décidé de créer un site ou l'on peut trouver toutes sortes d'astuces afin d'utiliser plus facilement votre PC, que ce soit logiciel ou matérielle. Mais bon, soyons clair, je vais pas vous cacher que dans le forum qui se trouvera gréffé au site aura une catégorie pour l'aide en générale.</li>
                                             <li> <strong>...et moi</strong>: Je me dévoile sous le pseudo de <q> Fabb </q>, et ce sera suffisant pour l'
    instant.lol.<img src="images/XD.gif" alt="rire">.</li>           
                                     </ul>        
                             </p>
                             <p>
                                     <HR align=center size=4 width="50%" color=#22313e>
                             </p>   
                     <div class="pc"> <img src="images/poste-de-travail.png" alt="PC"> </div>                     
                             <p>
                                     Donc voilà pour la présentation du site, mais avant je tenais à vous dire un détail, pour visiter le site plus aisément, utiliser Firefox, un navigateur très en vogue et fonctionnel.Il me reste plus qu'à vous souhaiter une bonne visite.<br/>
                                     Et comme c'
    est mon premier site, laissez moi un commentaire sur le <a href="livredor.php">Livre d OR</a>  Merci.
                                    
                                    
                             </p>
                            
                             <h2> <em> <q>Les NEWS</q> </em> </h2>
                        
                        
                             <p>
                                Venez consulter régulièrement les news pour vous tenir informés sur les évolutions su site.
                             </p>
                    

             <?php
             mysql_connect("", "", "");
             mysql_select_db("");

    // On récupère les 5 dernières news
             $retour = mysql_query('SELECT * FROM news ORDER BY id DESC LIMIT 0, 5');
             while ($donnees = mysql_fetch_array($retour))
    {
             ?>

         <div class="news">
             <h4>
             <?php echo $donnees['titre']; ?>
                 <em>le <?php echo date('d/m/Y à H\hi', $donnees['timestamp']); ?></em>
             </h4>
       
                 <p>
             <?php
    // On enlève les éventuels antislash PUIS on crée les entrées en HTML (<br />)
             $contenu = nl2br(stripslashes($donnees['contenu']));
             echo $contenu;
             ?>
                 </p>
         </div>
             <?php
    }    // Fin de la boucle des news
             ?>
                                                
         </div>   

         <div id="pieddepage" >
             <?php
    // On inclue le bas de la page
             include("includes/pieddepage.php");
             ?>
         </div>
    </body>
    </html>


    Là c'est la bannière utilisé pour l'include: j'y ais mi le menu avec:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
         <head>
                 <title> </title>
             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
             <link rel="stylesheet" media="screen" type="text/css" title="Design 1"href="../css/style1a.css" />
         </head>

            
         <body>

           <!-- L'en-tête  -->                               <!--  Ne pas oublier le  alt  pour que le site soit valide-->

             <div id="banniere1">      
             </div>
                    
             <div id="banniere3">      
                     </div> 
                    
                     <div id="banniere2">      
                     </div>
             
                     <div id="menu">
                 <h3><em><q>MENU</q></em></h3>
                     <p>
                         <img src="images/home.png" alt="acceuil"><a href="index.php">Acceuil</a><br/>
                                             <img src="images/actualiser.png" alt="Livredor"><a href="livredor.php">Livre d OR</a><br/>
                         <img src="images/favoris.png" alt="forum"><a href="forum.html">Forum</a><br/>
                                         <img src="images/bloc-note.png" alt="Astuce"><a href="astuce.php">Astuces</a>
                                 </p>
                             <h3><em><q>Les Astuces et Tutos</q></em></h3>
                                     <h4>Systeme</h4>
                                             <ul>
                             <li><a href="">Windows XP</a></li>
                                             </ul>
                                     <h4>Bureautique</h4>
                                             <ul>
                                                 <li><a href="">Office</a></li>
                             <li><a href="">Word</a></li>                  
                             <li><a href="">Excel</a></li>
                                                 <li><a href="">Power P.</a></li>                           
                                             </ul>
                                     <h4>Internet</h4>
                                             <ul>
                                                 <li><a href="">Internet Ex.</a></li>
                             <li><a href="">Firefox</a></li>                                                
                             <li><a href="">Outlook Ex.</a></li>
                                                 <li><a href="">Thunderbird</a></li>
                                                 <li><a href="">Google</a></li>
                             <li><a href="">Msn Messenger</a></li>
                             <li><a href="">Free</a></li>
                                                 <li><a href="">Divers</a></li>
                                         </ul>
                                     <h4>Multimédia</h4>
                         <ul>
                                                 <li><a href="">Winamp</a></li>
                             <li><a href="">Windos Media Player</a></li>                        
                             <li><a href="">Divers</a></li>                           
                                             </ul>
                                                
                 <h3><em><q>Liens Utiles</q></em></h3>
                     <p>
                         <a href="http://www.siteduzero.com/index.php">Site du Zéro</a><br/>
                         <a href="http://www.google.com/webhp?hl=fr">Google</a><br/>
                     </p>           
                 <h3><em><q>L'
    astuce du jour</q></em></h3>
                     <p>
                         Pour voir l'astuce du jour, <a href="astuce.php">cliquez ici</a>.
                     </p>               
             </div>
             </body>
    </html>
     


    et là le pied de page, pareil pour l'includes

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
         <head>
           
           <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
           <link rel="stylesheet" media="screen" type="text/css" title="Design 1"href="../css/style1a.css" />
         </head>

         <body>



             <div id="pied_de_page">
               <p>Copyright "fabb.Corp." 2006, tous droits réservés </p>
             </div>
                    
                    
             </body>
    </html>


    enfin, voici les erreur trouvé du premier code source que je vous ais mis:

    # Error Line 9 column 11: "DOCTYPE" declaration not allowed in instance.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3

    &#9993;
    # Error Line 10 column 57: document type does not allow element "html" here.

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

    &#9993;
    # Error Line 39 column 66: end tag for "img" omitted, but OMITTAG NO was specified.

    ... <img src="images/home.png" alt="acceuil"><a href="index.php">Acceuil</a><br/>

    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;
    # Info Line 39 column 25: start tag was here.

    <img src="images/home.png" alt="acceuil"><a href="index

    # Error Line 40 column 58: end tag for "img" omitted, but OMITTAG NO was specified.

    ...mages/actualiser.png" alt="Livredor"><a href="livredor.php">Livre d OR</a><b.

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

    <img src="images/actualiser.png" alt="Livredor"><a href="livredor.php"

    # Error Line 41 column 67: end tag for "img" omitted, but OMITTAG NO was specified.

    ... <img src="images/favoris.png" alt="forum"><a href="forum.html">Forum</a><br/>

    &#9993;
    # Info Line 41 column 25: start tag was here.

    <img src="images/favoris.png" alt="forum"><a href="foru

    # Error Line 42 column 52: end tag for "img" omitted, but OMITTAG NO was specified.

    <img src="images/bloc-note.png" alt="Astuce"><a href="astuce.php">Astuces</a>

    &#9993;
    # Info Line 42 column 7: start tag was here.

    <img src="images/bloc-note.png" alt="Astuce"><a href="astuce.php">Astuces

    # Error Line 94 column 18: document type does not allow element "ul" here; missing one of "object", "ins", "del", "map", "button" 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 97 column 169: end tag for "img" omitted, but OMITTAG NO was specified.

    ...l.<img src="images/XD.gif" alt="rire">.</li>

    &#9993;
    # Info Line 97 column 133: start tag was here.

    ... ce sera suffisant pour l'instant.lol.<img src="images/XD.gif" alt="rire">.</

    # Error Line 101 column 15: there is no attribute "align".

    <HR align=center size=4 width="50%" color=#22313e>

    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.

    &#9993;
    # Error Line 101 column 15: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

    <HR align=center size=4 width="50%" color=#22313e>

    &#9993;
    # Error Line 101 column 27: there is no attribute "size".

    <HR align=center size=4 width="50%" color=#22313e>

    &#9993;
    # Error Line 101 column 27: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

    <HR align=center size=4 width="50%" color=#22313e>

    &#9993;
    # Error Line 101 column 35: there is no attribute "width".

    <HR align=center size=4 width="50%" color=#22313e>

    &#9993;
    # Error Line 101 column 47: there is no attribute "color".

    <HR align=center size=4 width="50%" color=#22313e>

    &#9993;
    # Error Line 101 column 47: an attribute value must be a literal unless it contains only name characters.

    <HR align=center size=4 width="50%" color=#22313e>

    You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

    &#9993;
    # Error Line 101 column 54: element "HR" undefined.

    <HR align=center size=4 width="50%" color=#22313e>

    You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
    * by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    * by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

    &#9993;
    # Error Line 102 column 7: end tag for "HR" omitted, but OMITTAG NO was specified.

    </p>

    &#9993;
    # Info Line 101 column 5: start tag was here.

    <HR align=center size=4 width="50%" color=#22313e>

    # Error Line 103 column 82: end tag for "img" omitted, but OMITTAG NO was specified.

    ...mages/poste-de-travail.png" alt="PC"> </div>

    &#9993;
    # Info Line 103 column 34: start tag was here.

    <div class="pc"> <img src="images/poste-de-travail.png" alt="PC

    # Error Line 157 column 11: "DOCTYPE" declaration not allowed in instance.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3

    &#9993;
    # Error Line 158 column 57: document type does not allow element "html" here.

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >

    &#9993;
    # Error Line 163 column 11: 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.




    Je m'excuse si le message est grand, mais je voulais être sur que vous aiyez tout sous les yeux.
    Pour les ereurs, par exemple la 1er: le DOCTYPE comporte une erreur o_O : mais la quelle? :euh: je ne voi pas ce qui va pas?
    Et c'est pareil pour les autres, comment comprendre ce que nous renvoie le validateur de W3C?

    MErci d'avance pour vos réponses est conseils. ^^
    • Partager sur Facebook
    • Partager sur Twitter
      22 octobre 2006 à 18:47:41

      En vrac : utilise les balises zCode appropriées, c'est plus lisible. Un include inclue le code d'une page dans l'autre : ne la considère donc pas comme une page indépendante, c'est-à-dire que dans la page finale tu auras plusieurs doctypes, etc. - considère la page inclue comme un fragment de code d'un fichier que tu aurais mis dans un autre pour plus de lisibilité. Pour le reste : tu utilise des attributs ou éléments servant à la mise en page tels que align qui ne sont pas acceptés en 1.0 Strict, tu ne fermes pas les balises seules correctements, etc.

      C'est-à-dire que pour ce troisième point tu utilise aveuglément ce type de document, tout en ne connaissant pas la syntaxe à utiliser.
      Tu devrais donc commencer à te renseigner dessus avant de commencer, et conformément au règlement du forum, essayer de chercher un peu avant de demander.

      Voilà, et bonne chance. :)
      atly
      • Partager sur Facebook
      • Partager sur Twitter
      Anonyme
        22 octobre 2006 à 18:50:02

        Une fois les pages incluses tu as trois DOCTYPE !!, il faut les enlever pour en garder juste un. Bon le pire morceau de code que j'ai vu est lui :
        <HR align=center size=4 width="50%" color=#22313e>

        • Nom de balise en majuscule
        • L'attribut align n'existe pas
        • L'attribut align ne possède pas de délimiteurs
        • L'attribut size n'existe pas
        • L'attribut size na pas de délimiteur
        • L'attribut color n'existe pas
        • L'attribut color na pas de délimiteur
        • La balise hr ne se termine pas par />

        Correction :
        <hr width="50%" />

        T'es balises img ne se terminent pas par />

        Voilà, après ca ca devrait aller mieux ;)

        EDIT : Grillé >_<
        • Partager sur Facebook
        • Partager sur Twitter
          22 octobre 2006 à 19:05:26

          en effet cela change beaucoup de choses:
          j'ai rajouté au balise tel que "<img src........" un espace et un /.
          j'ai viré les balise avec le widht, ce sont des balises que j'ai trouvé sur un autre site que celui du zéro, pour faire des séparations par une ligne horizontale entre deux paragraphes par exemple.

          voici le nouveau résultat bien meilleur que celui d'avant:

          # Error  Line 9 column 11: "DOCTYPE" declaration not allowed in instance.

                   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3

          &#9993;
          # Error Line 10 column 57: document type does not allow element "html" here.

          <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >


          The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

          One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

          &#9993;
          # Error Line 88 column 18: document type does not allow element "ul" here; missing one of "object", "ins", "del", "map", "button" 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 91 column 169: end tag for "img" omitted, but OMITTAG NO was specified.

          ...l.<img src="images/XD.gif" alt="rire">.</li>   

          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;
          # Info Line 91 column 133: start tag was here.

          ... ce sera suffisant pour l'instant.lol.<img src="images/XD.gif" alt="rire">.</

          # Error Line 151 column 11: "DOCTYPE" declaration not allowed in instance.

                   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3

          &#9993;
          # Error Line 152 column 57: document type does not allow element "
          html" here.

          <html xmlns="
          http://www.w3.org/1999/xhtml" xml:lang="fr" >

          &#9993;
          # Error Line 157 column 11: 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.


           


          encore le doctype, mais j'utilise celui indiqué dans les cours de Matéo pour un site web, ainsi que les balises se trouvant aussi dans les cours.

          Je voulais savoir, les "infos sont considéré comme des erreurs? ono je pense pas, si?

          Et les ellement d'une liste non ordonnées

          <ul>
                                   
             <li><a href="">Windows XP</a></li>
                                                   
          </ul>

          elles doivent se trouver dans un paragraphe ou pas?

          encore merci d'avance pour vos conseils

          p.s.: a la fin de mon site je metrais une page de remrciement pour ceux qui m'ont aidé a régler mes problèmes, c'est pas pour vous insiter a m'aider, juste que je trouve que c'est le minimum de remercier ceux qui m'aident ^^
          • Partager sur Facebook
          • Partager sur Twitter
          Anonyme
            22 octobre 2006 à 19:09:18

            Donne nous le liens vers ton site pour que lon voit le code source ;)

            Et la balise <hr /> n'est pas invalide, mais les attributs que tu lui a donné l'étaient.
            • Partager sur Facebook
            • Partager sur Twitter
              22 octobre 2006 à 19:24:42

              mon site n'est pas encore en ligne, je préfère vous le donner là

              et pour les DOCTYPE il faut que j'en garde que un, je le met sur la page que je veut?
              Je pense que le mieu c'est dans l'include bannière.php, qui répetera le Doctype sur chaque page du site qui utilise l'include?

              Je te redonne les code source, mais si tu préfère avoir l'adresse du site, je vais le mettre en ligne et je revien vous donner le lien.

              l'index

              <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
                   <head>
                       <title>Acceuil/PC Facile</title>
                       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                   </head>
              <body>
                       <div id="bannière">
                       <?php
              // On inclue le haut de la page
                       include("includes/bannière.php");
                       ?>
                       </div>


              <!-- Le 1er corps ou se trouve les présentations -->

                   <div id="corps">
                       <h2> <em> <q>Bienvenue sur le site des astuces pour PC.</q> </em> </h2>
                                       <p>                
                                           <ul>
                                       <li> <strong>Pourquoi la création de ce site?</strong>: Tout simplement par envie, j'ai réussi à trouver des astuces et conseils que je désire partager avec vous cher visiteurs.</li>
                                                   <li> <strong>Que trouve-t-on dans ce site?</strong>: Pour ne pas refaire un site d'
              aide informatique, alors qu'au début c'était prévu, j'ai décidé de créer un site ou l'on peut trouver toutes sortes d'astuces afin d'utiliser plus facilement votre PC, que ce soit logiciel ou matérielle. Mais bon, soyons clair, je vais pas vous cacher que dans le forum qui se trouvera gréffé au site aura une catégorie pour l'aide en générale.</li>
                                                       <li> <strong>...et moi</strong>: Je me dévoile sous le pseudo de <q> Fabb </q>, et ce sera suffisant pour l'
              instant.lol.<img src="images/XD.gif" alt="rire">.</li>           
                                               </ul>        
                                       </p>
                                       <p>
                                                
                                       </p>   
                               <div class="pc"> <img src="images/poste-de-travail.png" alt="PC" /> </div>               
                                       <p>
                                               Donc voilà pour la présentation du site, mais avant je tenais à vous dire un détail, pour visiter le site plus aisément, utiliser Firefox, un navigateur très en vogue et fonctionnel.Il me reste plus qu'à vous souhaiter une bonne visite.<br/>
                                               Et comme c'
              est mon premier site, laissez moi un commentaire sur le <a href="livredor.php">Livre d OR</a>  Merci.
                                              
                                              
                                       </p>
                                      
                                       <h2> <em> <q>Les NEWS</q> </em> </h2>
                                  
                                  
                                       <p>
                                          Venez consulter régulièrement les news pour vous tenir informés sur les évolutions su site.
                                       </p>
                              

                       <?php
                       mysql_connect("", "", "");
                       mysql_select_db("");

              // On récupère les 5 dernières news
                       $retour = mysql_query('SELECT * FROM news ORDER BY id DESC LIMIT 0, 5');
                       while ($donnees = mysql_fetch_array($retour))
              {
                       ?>

                   <div class="news">
                       <h4>
                       <?php echo $donnees['titre']; ?>
                           <em>le <?php echo date('d/m/Y à H\hi', $donnees['timestamp']); ?></em>
                       </h4>
                 
                           <p>
                       <?php
              // On enlève les éventuels antislash PUIS on crée les entrées en HTML (<br />)
                       $contenu = nl2br(stripslashes($donnees['contenu']));
                       echo $contenu;
                       ?>
                           </p>
                   </div>
                       <?php
              }    // Fin de la boucle des news
                       ?>
                                                          
                   </div>   

                   <div id="pieddepage" >
                       <?php
              // On inclue le bas de la page
                       include("includes/pieddepage.php");
                       ?>
                   </div>
              </body>
              </html>


              l'include bannière et menu dans la quel je garde le Doctype

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
                   <head>
                           <title> </title>
                       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                       <link rel="stylesheet" media="screen" type="text/css" title="Design 1"href="../css/style1a.css" />
                   </head>

                      
                   <body>

                     <!-- L'en-tête  -->                               <!--  Ne pas oublier le  alt  pour que le site soit valide-->

                       <div id="banniere1">      
                       </div>
                              
                       <div id="banniere3">      
                               </div> 
                              
                               <div id="banniere2">      
                               </div>
                       
                               <div id="menu">
                           <h3><em><q>MENU</q></em></h3>
                               <p>
                                   <img src="images/home.png" alt="acceuil" /><a href="index.php">Acceuil</a><br/>
                                                       <img src="images/actualiser.png" alt="Livredor" /><a href="livredor.php">Livre d OR</a><br/>
                                   <img src="images/favoris.png" alt="forum" /><a href="forum.html">Forum</a><br/>
                                                   <img src="images/bloc-note.png" alt="Astuce" /><a href="astuce.php">Astuces</a>
                                           </p>
                                       <h3><em><q>Les Astuces et Tutos</q></em></h3>
                                               <h4>Systeme</h4>
                                                       <ul>
                                       <li><a href="">Windows XP</a></li>
                                                       </ul>
                                               <h4>Bureautique</h4>
                                                       <ul>
                                                           <li><a href="">Office</a></li>
                                       <li><a href="">Word</a></li>                  
                                       <li><a href="">Excel</a></li>
                                                           <li><a href="">Power P.</a></li>                           
                                                       </ul>
                                               <h4>Internet</h4>
                                                       <ul>
                                                           <li><a href="">Internet Ex.</a></li>
                                       <li><a href="">Firefox</a></li>                                                
                                       <li><a href="">Outlook Ex.</a></li>
                                                           <li><a href="">Thunderbird</a></li>
                                                           <li><a href="">Google</a></li>
                                       <li><a href="">Msn Messenger</a></li>
                                       <li><a href="">Free</a></li>
                                                           <li><a href="">Divers</a></li>
                                                   </ul>
                                               <h4>Multimédia</h4>
                                   <ul>
                                                           <li><a href="">Winamp</a></li>
                                       <li><a href="">Windos Media Player</a></li>                        
                                       <li><a href="">Divers</a></li>                           
                                                       </ul>
                                                          
                           <h3><em><q>Liens Utiles</q></em></h3>
                               <p>
                                   <a href="http://www.siteduzero.com/index.php">Site du Zéro</a><br/>
                                   <a href="http://www.google.com/webhp?hl=fr">Google</a><br/>
                               </p>           
                           <h3><em><q>L'
              astuce du jour</q></em></h3>
                               <p>
                                   Pour voir l'astuce du jour, <a href="astuce.php">cliquez ici</a>.
                               </p>               
                       </div>
                       </body>
              </html>
               


              et l'includes pied de page

              <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
                   <head>
                     
                     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                     <link rel="stylesheet" media="screen" type="text/css" title="Design 1"href="../css/style1a.css" />
                   </head>

                   <body>



                       <div id="pied_de_page">
                         <p>Copyright "fabb.Corp." 2006, tous droits réservés </p>
                       </div>
                              
                              
                       </body>
              </html>


              voilà l'adresse du site http://fabb.r.free.fr/
              • Partager sur Facebook
              • Partager sur Twitter
              Anonyme
                22 octobre 2006 à 19:28:48


                <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
                     <head>
                         <title>Acceuil/PC Facile</title>
                         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                     </head>
                <body>
                         <div id="bannière">
                         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
                     <head>
                             <title> </title>
                         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                         <link rel="stylesheet" media="screen" type="text/css" title="Design 1"href="../css/style1a.css" />
                     </head>


                ???

                Y'a quelques chose qui ne va pas...
                • Partager sur Facebook
                • Partager sur Twitter
                  22 octobre 2006 à 19:54:30

                  ca devient bon, une erreur, allez consulter le code source, voici l'erreur

                  Error  Line 83 column 18: document type does not allow element "ul" here; missing one of "object", "ins", "del", "map", "button" 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>").




                  l'erreur se trouve la dedans, j'ai rajouté des paragraphes atour des liste, mais ça enjendre plus d'erreur, je les ais fait individuellement, c pareil encore plus d'ereur, donc la je voi pas, si vous pouvez me mettre sur la piste?
                  Enfin ma pages "astuce" est valide grace a vous, je mettrais un petit mot en fin du site pour vous remercier ^^

                  !-- L'en-tête  -->                               <!--  Ne pas oublier le  alt  pour que le site soit valide-->

                           <div id="banniere1">      
                           </div>
                                  
                           <div id="banniere3">      
                                   </div> 
                                  
                                   <div id="banniere2">      
                                   </div>
                           
                                   <div id="menu">
                               <h3><em><q>MENU</q></em></h3>
                                   <p>
                                       <img src="images/home.png" alt="acceuil" /><a href="index.php">Acceuil</a><br/>
                                                           <img src="images/actualiser.png" alt="Livredor" /><a href="livredor.php">Livre d OR</a><br/>
                                       <img src="images/favoris.png" alt="forum" /><a href="forum.html">Forum</a><br/>
                                                       <img src="images/bloc-note.png" alt="Astuce" /><a href="astuce.php">Astuces</a>
                                               </p>
                                           <h3><em><q>Les Astuces et Tutos</q></em></h3>
                                                   <h4>Systeme</h4>
                                                           <ul>
                                           <li><a href="">Windows XP</a></li>
                                                           </ul>
                                                   <h4>Bureautique</h4>
                                                           <ul>
                                                               <li><a href="">Office</a></li>
                                           <li><a href="">Word</a></li>                  
                                           <li><a href="">Excel</a></li>
                                                               <li><a href="">Power P.</a></li>                           
                                                           </ul>
                                                   <h4>Internet</h4>
                                                           <ul>
                                                               <li><a href="">Internet Ex.</a></li>
                                           <li><a href="">Firefox</a></li>                                                
                                           <li><a href="">Outlook Ex.</a></li>
                                                               <li><a href="">Thunderbird</a></li>
                                                               <li><a href="">Google</a></li>
                                           <li><a href="">Msn Messenger</a></li>
                                           <li><a href="">Free</a></li>
                                                               <li><a href="">Divers</a></li>
                                                       </ul>
                                                   <h4>Multimédia</h4>
                                       <ul>
                                                               <li><a href="">Winamp</a></li>
                                           <li><a href="">Windos Media Player</a></li>                        
                                           <li><a href="">Divers</a></li>                           
                                                           </ul>
                                                              
                               <h3><em><q>Liens Utiles</q></em></h3>
                                   <p>
                                       <a href="http://www.siteduzero.com/index.php">Site du Zéro</a><br/>
                                       <a href="http://www.google.com/webhp?hl=fr">Google</a><br/>
                                   </p>           
                               <h3><em><q>L'astuce du jour</q></em></h3>
                                   <p>
                                       Pour voir l'astuce du jour, <a href="astuce.php">cliquez ici</a>.
                                   </p>               
                           </div>
                          
                       

                          
                       

                         
                  • Partager sur Facebook
                  • Partager sur Twitter
                    22 octobre 2006 à 20:47:18

                    Ne pas mettre dans les includes :
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
                         <head>
                             <title></title>
                             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                         </head>
                    <body>
                    </body>

                    En fait il insère le code source de l'autre page (page appélé) donc 3 fois la même chose provoque des erreurs surtout que tu l'as déjà dit
                    • Partager sur Facebook
                    • Partager sur Twitter
                      22 octobre 2006 à 21:17:22

                      oui je sais, c réglé ça, il me reste une erreur a trouvé, du moins a régler, regarde si tu peut m'aider dans le message au dessus du tien

                      edit: c'est bon ma page est valide, je ne manquerais pas de vous citer.
                      Merci a vous, et bonne continuation, mais je pense qu'on se reverra, ^^
                      • Partager sur Facebook
                      • Partager sur Twitter

                      Erreur dans ma page

                      × 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