deejam26 Posted April 24, 2013 Share Posted April 24, 2013 Bonjour, j'ai 25 erreurs sur mon code HTML le souci c est que je debute et ne sait pas comment corriger le code. pourriez vous m aider svp? voici les erreurs; Validation Output: 25 Errors required attribute X not specified ✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. Line 368, column 11338: required attribute "alt" not specified …mpte-facultatif-diapo.jpg" width="531"></div><script type="text/javascript">/*… Line 382, column 6012: required attribute "alt" not specified …rts/img/icon-alert.png" class="icon" /> Mes alertes </a></li></ul><p class="lo… Line 385, column 342: required attribute "type" not specified …#x6f;m</a></li></ul></div><script>/* <![CDATA[ */var scrolltotop={setting… [*]document type does not allow element X here ✉ 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). Line 259, column 306: document type does not allow element "style" here … title="Voir">Voir</a></div></li></div></div><style type="text/css">.home-box { Line 368, column 11850: document type does not allow element "style" here …"></a></li></ul><style type="text/css">#rslides1_s0 {background: #FFFFFF url(h… [*]end tag for X omitted, but OMITTAG NO was specified ✉ You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". Line 259, column 277: end tag for "ul" omitted, but OMITTAG NO was specified … title="Voir">Voir</a></div></li></div></div><style type="text/css">.home-box … Line 368, column 11344: end tag for "img" omitted, but OMITTAG NO was specified …acultatif-diapo.jpg" width="531"></div><script type="text/javascript">/* <![CD… [*]there is no attribute X ✉ 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 249, column 13653: there is no attribute "legend" …ac6a.jpg" alt="cartomiseur x8" legend="" height="300" width="535" /></a></li><… Line 249, column 15205: there is no attribute "border" …00-mah.jpg" alt="" width="123" border="1" /></a><div class="details black"><h… [*]document type does not allow element X here; missing one of Y start-tag ✉ 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>"). Line 368, column 907: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Café</h4> <strong> - Flacon de E… Line 368, column 1514: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Caramel</h4> <strong> - Flacon d… Line 368, column 2139: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Bonbon Cola</h4> <strong> - Flac… Line 368, column 2773: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Menthe</h4> <strong> - Flacon de… Line 368, column 3386: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Pèche</h4> <strong> - Flacon de … Line 368, column 4000: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Reglisse</h4> <strong> - Flacon … Line 368, column 4626: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Vanille</h4> <strong> - Flacon d… Line 368, column 5246: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Tabac-Menthe</h4> <strong> - Fla… Line 368, column 5885: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Tabac Gold</h4> <strong> - Flaco… Line 368, column 6516: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Tabac Royal</h4> <strong> - Flac… Line 368, column 7158: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Bonbon Banane</h4> <strong> - Fl… Line 368, column 7807: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Bonbon Banane</h4> <strong> - Fl… Line 368, column 8447: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Kiwi</h4> <strong> - Flacon de E… Line 368, column 9054: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Citron</h4> <strong> - Flacon de… Line 368, column 9671: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Framboise</h4> <strong> - Flacon… Line 368, column 10298: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag …=""> <span class="dark-background"><h4>Saveur Chocolat</h4> <strong> - Flacon … merci beaucoup par avance de votre ame charitable. bonne soirée a vous Link to comment Share on other sites More sharing options...
Vinum Posted April 25, 2013 Share Posted April 25, 2013 Bonjour, Cela va être difficile de t'aider comme cela. Tout d'abord il te faut comprendre l'anglais. Puis si tu utilises firefox, il faut utiliser firebug afin d'identifier toutes les erreurs décrites une à une. Et enfin, il faut aller directement dans le code pour le modifier en tenant compte de ce que dit le validateur W3C. Bref c'est pas mal de boulot et je te conseil de te tourner vers un professionnel. Link to comment Share on other sites More sharing options...
System/D Posted April 25, 2013 Share Posted April 25, 2013 (edited) Hello, Comme l'a dit Vinum, le plus judicieux est d'utiliser un inspecteur, tous les navigateurs en ont un natif, sauf erreur… (cmd + alt + i) Ensuite trouve le document qui contient l'erreur, tu as ensuite la ligne qui est notée. Ensuite reste à identifier l'erreur qui est expliquée en anglais sur le validateur W3C. Par exemple la première erreur est un attribue "alt" manquant, car il est obligatoire dans certaine balises comme <img>. Il peut toutefois rester vide. Edited April 25, 2013 by SystemD (see edit history) Link to comment Share on other sites More sharing options...
deejam26 Posted April 25, 2013 Author Share Posted April 25, 2013 bonjour, merci a tous les deux pour vos reponses, en fait ce que je voudrait, c est qu on me dise quoi mettre aux erreurs , si je doit ajouter ou enlever un truc. pour le reste (firebub etc, ca c est bon, j ai , je ferai la recherche et la modif via ftp;, mais je ne sait pas quoi mettre a la place des erreurs en fait! par exemple la premiere erreur est un attribut "alt", ca veux dire quoi, que je rajoute alt ? merci encore de votre aide Link to comment Share on other sites More sharing options...
System/D Posted April 25, 2013 Share Posted April 25, 2013 (edited) Bon si t'es débutant ça va être assez fastidieux de corriger ces erreurs toi-même, étant donnée que ça demande des connaissances parfois assez avancées en CSS/(x)HTML… Ce que tu peux faire c'est de renseigner sur chacun des problèmes, par contre ça risque de te prendre du temps. Où fais appel à quelqu'un dans le domaine. Par exemple pour la première erreur, il faudrait juste ajouter alt="" dans ta balise <img src="" /> comme cela <img src="" alt="" /> Pour l'usage des alt: http://www.alsacreat...ages-liens.html Edited April 25, 2013 by SystemD (see edit history) Link to comment Share on other sites More sharing options...
deejam26 Posted April 25, 2013 Author Share Posted April 25, 2013 super, je te remercie vraiment de ton aide, je ne peut demandé a personne et je n ai plus le budget pour ca, je doit me debrouiller! je vais donc les reprendres une par une, . sans vouloir abuser, sur les erreurs de la fin,s plusieurs on le meme probleme, peut tu me dire quelle est l erreur dans ce code stp? document type does not allow element X here; missing one of Y start-tag ✉ 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>"). Line 368, column 907: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Café</h4> <strong> - Flacon de E… Line 368, column 1514: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Caramel</h4> <strong> - Flacon d… Line 368, column 2139: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Bonbon Cola</h4> <strong> - Flac… Line 368, column 2773: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Menthe</h4> <strong> - Flacon de… Line 368, column 3386: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Pèche</h4> <strong> - Flacon de … Line 368, column 4000: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Reglisse</h4> <strong> - Flacon … Line 368, column 4626: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Vanille</h4> <strong> - Flacon d… Line 368, column 5246: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Tabac-Menthe</h4> <strong> - Fla… Line 368, column 5885: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Tabac Gold</h4> <strong> - Flaco… Line 368, column 6516: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Tabac Royal</h4> <strong> - Flac… Line 368, column 7158: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Bonbon Banane</h4> <strong> - Fl… Line 368, column 7807: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Bonbon Banane</h4> <strong> - Fl… Line 368, column 8447: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Kiwi</h4> <strong> - Flacon de E… Line 368, column 9054: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Citron</h4> <strong> - Flacon de… Line 368, column 9671: document type does not allow element "h4" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag…=""> <span class="dark-background"><h4>Saveur Framboise</h4> <strong> - Flacon… Merci beaucoup de ton aide precieuse, grace a toi je vais mettre 3 semaines a corriger au lieu de 6 mois ! Link to comment Share on other sites More sharing options...
System/D Posted April 25, 2013 Share Posted April 25, 2013 (edited) En effet l'erreur à l'air d'être répétée plusieurs fois… Il faudrait voir le code source pour être sûr, mais je pense que tu as des balises <h4> misent dans d'autres balises en ligne genre dans un <p> Edited April 25, 2013 by SystemD (see edit history) Link to comment Share on other sites More sharing options...
deejam26 Posted April 25, 2013 Author Share Posted April 25, 2013 bon, j ai deja localisé la grande partie des erreurs qui viennent d un module bricolé par quelqu'un, je l ai desactivé je n ai plus que 8 erreurs. en fait, la seule errreur qui me gene est celle qui me provoque une erreur d affichage sous IE. mon site fonctionne parfaitement sur tous les navigateurs , firefox , chrome , opera, safari pas de problemes. par contre sous IE , c est le merdié, sous IE7 c est une catastrophe, sous IE9 juste mon menu du haut qui n est pas a la bonne place! j ai donc un souci avec le placement d un truc dans ma page d acceuil! mais je ne suis pas assez calé en html pour savoir lequel. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now