soucis compatibilité firefox
Forum Programmation : soucis compatibilité firefox
Salut,
Je suis novice en la matière et j'ai quelques soucis pour mettre en ligne ma page perso (http://coursparticuliers34.free.fr) qui sera bientot un site en WWW. (elle fonctionne très bien sur IE, enfin je trouve).
J'ai découvert 50 erreurs en allant sur le site :
http://validator.w3.org
Je vous mets les erreurs trouvées, est ce que quelqu'un pourrait m'aider je suis perdu, merci d'avance :
No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.
The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling error, or that the Declaration is not using correct syntax. Validation has been performed using a default "fallback" Document Type Definition that closely resembles "HTML 4.01 Transitional", but the document will not be Valid until you have corrected this problem with the DOCTYPE Declaration.
Learn how to add a doctype to your document from our FAQ.
Namespace Found in non-XML Document
Namespace "" found, but document type is not XML!
This page is not Valid (no Doctype found)!
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 1 column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns
="urn:schemas-microsoft-com
The checked page did not contain a document type ("DOCTYPE" ) declaration. The Validator has tried to validate with a fallback DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are given above -- and it is necessary to have this declaration before the page can be declared to be valid.
✉
2. Error Line 1 column 14: there is no attribute "XMLNS:V".
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns
="urn:schemas-microsoft-com
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.
✉
3. Error Line 1 column 54: there is no attribute "XMLNS
".
...n:schemas-microsoft-com:vml" xmlns
="urn:schemas-microsoft-com
ffice
ffice
✉
4. Error Line 1 column 102: there is no attribute "XMLNS".
...s-microsoft-com
ffice
ffice" xmlns="http://www.w3.org/TR/REC-html40">
✉
5. Error Line 10 column 6: required attribute "TYPE" not specified.
<style>
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>.
✉
6. Error Line 51 column 113: there is no attribute "BORDERCOLOR".
...llapse; border-width: 0" bordercolor="#111111" width="1156" id="AutoNumber1"
✉
7. Error Line 51 column 160: there is no attribute "HEIGHT".
...width="1156" id="AutoNumber1" height="100%">
✉
8. Error Line 68 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
9. Error Line 70 column 53: there is no attribute "V:SHAPES".
...ndex_fichiers/image001.gif" v:shapes="_x0000_s1035"></span><![endif]><img bor
✉
10. Error Line 70 column 67: required attribute "ALT" not specified.
...image001.gif" v:shapes="_x0000_s1035"></span><![endif]><img border="0" src="i
✉
11. Error Line 70 column 78: "ENDIF" is not a reserved name.
...f" v:shapes="_x0000_s1035"></span><![endif]><img border="0" src="images/logoj
✉
12. Error Line 70 column 153: required attribute "ALT" not specified.
...ojerome.jpg" width="900" height="109"></td>
✉
13. Error Line 90 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
14. Error Line 92 column 77: required attribute "ALT" not specified.
...image002.gif" v:shapes="_x0000_s1031"></span><![endif]><!--[if gte vml 1]><v:
✉
15. Error Line 92 column 88: "ENDIF" is not a reserved name.
...f" v:shapes="_x0000_s1031"></span><![endif]><!--[if gte vml 1]><v:shape
✉
16. Error Line 103 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
17. Error Line 105 column 77: required attribute "ALT" not specified.
...rs/image003.gif" v:shapes="_x0000_s1032"></span><![endif]></td>
✉
18. Error Line 105 column 88: "ENDIF" is not a reserved name.
...f" v:shapes="_x0000_s1032"></span><![endif]></td>
✉
19. Error Line 122 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
20. Error Line 124 column 77: required attribute "ALT" not specified.
...rs/image004.gif" v:shapes="_x0000_s1033"></span><![endif]></td>
✉
21. Error Line 124 column 88: "ENDIF" is not a reserved name.
...f" v:shapes="_x0000_s1033"></span><![endif]></td>
✉
22. Error Line 136 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
23. Error Line 138 column 67: required attribute "ALT" not specified.
...dex_fichiers/image001.gif" v:shapes="_x0000_s1034"></span><![endif]></td>
✉
24. Error Line 138 column 78: "ENDIF" is not a reserved name.
...gif" v:shapes="_x0000_s1034"></span><![endif]></td>
✉
25. Error Line 142 column 22: end tag for element "B" which is not open.
<font size="4"></b></font></font>
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occured in a script section of your document, you should probably read this FAQ entry.
✉
26. Error Line 142 column 36: end tag for element "FONT" which is not open.
<font size="4"></b></font></font>
✉
27. Error Line 152 column 7: end tag for element "B" which is not open.
</b></font><!--[if gte vml 1]><v:shape
✉
28. Error Line 152 column 14: end tag for element "FONT" which is not open.
</b></font><!--[if gte vml 1]><v:shape
✉
29. Error Line 162 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
30. Error Line 164 column 67: required attribute "ALT" not specified.
...dex_fichiers/image005.gif" v:shapes="_x0000_s1028"></span><![endif]></td>
✉
31. Error Line 164 column 78: "ENDIF" is not a reserved name.
...gif" v:shapes="_x0000_s1028"></span><![endif]></td>
✉
32. Error Line 177 column 7: end tag for element "B" which is not open.
</b></font><!--[if gte vml 1]><v:shape
✉
33. Error Line 177 column 14: end tag for element "FONT" which is not open.
</b></font><!--[if gte vml 1]><v:shape
✉
34. Error Line 187 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
35. Error Line 189 column 77: required attribute "ALT" not specified.
...rs/image006.gif" v:shapes="_x0000_s1029"></span><![endif]></td>
✉
36. Error Line 189 column 88: "ENDIF" is not a reserved name.
...f" v:shapes="_x0000_s1029"></span><![endif]></td>
✉
37. Error Line 211 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
38. Error Line 213 column 67: required attribute "ALT" not specified.
...dex_fichiers/image007.gif" v:shapes="_x0000_s1027"></span><![endif]></b></font></td>
✉
39. Error Line 213 column 78: "ENDIF" is not a reserved name.
...gif" v:shapes="_x0000_s1027"></span><![endif]></b></font></td>
✉
40. Error Line 213 column 88: end tag for element "B" which is not open.
...s="_x0000_s1027"></span><![endif]></b></font></td>
✉
41. Error Line 213 column 95: end tag for element "FONT" which is not open.
...00_s1027"></span><![endif]></b></font></td>
✉
42. Error Line 245 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
✉
43. Error Line 247 column 67: required attribute "ALT" not specified.
...dex_fichiers/image008.gif" v:shapes="_x0000_s1030"></span><![endif]></td>
✉
44. Error Line 247 column 78: "ENDIF" is not a reserved name.
...gif" v:shapes="_x0000_s1030"></span><![endif]></td>
✉
45. Error Line 279 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><img border=0 width=5 height=1
✉
46. Error Line 280 column 57: required attribute "ALT" not specified.
src="index_fichiers/image010.gif" v:shapes="_x0000_s1025"><![endif]></span></p>
✉
47. Error Line 280 column 61: "ENDIF" is not a reserved name.
...index_fichiers/image010.gif" v:shapes="_x0000_s1025"><![endif]></span></p>
✉
48. Error Line 298 column 25: "IF" is not a reserved name.
</v:shape><![endif]--><![if !vml]><img border=0 width=1 height=27
✉
49. Error Line 299 column 57: required attribute "ALT" not specified.
src="index_fichiers/image011.gif" v:shapes="_x0000_s1026"><![endif]></p>
✉
50. Error Line 299 column 61: "ENDIF" is not a reserved name.
...index_fichiers/image011.gif" v:shapes="_x0000_s1026"><![endif]></p>
✉
Merci encore
Jérôme
Ce site ou tu es allé controler ta page, c'est un script qui te permet de verifier si ta page est conforme aux norme du world wide web consortium.
Hors, pour etre conforme à cela, il existe une multitude de regles dont la principale est le html sert au contenu de la page, le css à la mise en forme.
Il suffit de regarder tu page pour voir qu'il n'y a même pas de fichier css donc c'est normal que tu ais toutes ces erreurs.
Message édité par Le22 le 10-07-2007 à 07:49:19
Répondre à Le22
Ca n'empechera pas l'affichage du site sous firefox si ton site ne convient pas aux strict xhtml !
Personne ne parle de XHTML et/ou CSS.
En HTML 4.01, tu a le droit de faire ta mise en forme inline.
Pour essayer de répondre, je te conseille tout d'abord de prendre des cours d'HTML ou de passer directement à XHTML/CSS (lien vers un bon site qui t'apprendra ça à partir de 0).
D'après ce que j'ai vu, ton site a été réalisé à l'aide d'un outil microsoft ce qui t'as déjà rajouté les 4 premières erreurs (et peut être d'autres dont les histoire de ENDIF et v:shape). Je pense que c'est à cause de ça que ton site n'est pas opé pour Firefox.
Ensuite si tu lis simplement les erreurs en traduisant mot à mot tu pourra déjà en résoudre un bon paquet.
Répondre à MoOx_t
Merci pour toutes ces réponses, je me lance dans l'apprentissage de l'HTML (merci MoOx_t).
j'ai réalisé mon site avec frontpage, quel logiciel vous me conseilleriez?
si possible un simple ;-)
Merci
Perso je n'utilise pas de générateurs de codes HTML. Je code tout à la main. Ca peut paraître fou de nos jours mais c'est encore la meileur solution pour être sur de ce qu'on produit. Et quand on a une erreur, c'est plus facile a ciblé.
Si tu veux quelque chose de sympa qui peut t'assister dans la production de code HTML, de CSS, de javascript eventuellement, tourne toi vers Eclipse avec le plugin Aptana qui n'est pas mal du tout.
Répondre à MoOx_t
Il y a 1292 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.
