Bonjour.
Je commence à corriger les erreurs que me renvoie le validator W3C, mais j'ai beaucoup de mal bien que j'en ai corrigé une trentaine, il m'en reste 12 que je ne comprends pas vraiment, car je n'arrive pas à les corriger sans tout casser irrémédiablement ...
Un ami m'a donné les conseils pour que ce soit valide, mais il faudrait que je réecrive tout ! En plus ses conseils étaient très théoriques, sans exemple concret, donc je n'ai pas compris. Pourriez-vous m'aider ?
Le CSS relatif:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>Santé Globale</title> <style type="text/css" media="screen">@import url( css/style.css );</style> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta> </head> <body> <div id="rap"> <div id="header" ></div> <div id="topleft"> <div id="logo" onclick="location.href='http://www.sante-globale.fr/';" style="cursor: pointer;"><a href="http://www.sante-globale.fr/"></a></div> <div id="flower"></div> </div> <div id="topright" > <label for="s"> <ul> <form method="get" id="searchform" action="/index.php"> <div> <input type="text" value="" name="s" size="18" id="s" /> <input style="display: none;" type="submit" id="searchsubmit" value="Search" /> </div> </form> </ul> <br/> <div id="navi"> <ul> <li id="active"><a href="index.htm" id="current">Accueil</a></li> <li><a href="nat.html">Naturopathie</a></li> <li><a href="aro.html">Aromathérapie</a></li> <li><a href="cnt.html">Chi Nei Tsang</a></li> <li><a href="kin.html">Kinésiologie</a></li> <li><a href="cours.html">Cours</a></li> </ul> </div> </label> </div> <div id="content"> <div class="post"><div class="data"> </div> <div class="storytitle" id="post-1"><a href="http://www.sante-globale.fr/" rel="bookmark" title="Ouverture du site">Ouverture du site</a></div> <div class="storycontent"><p>Bienvenue sur le site Santé Globale.<br/><br/> Ce site se veut un lien d'informations et de connaissances concernant la santé, les moyens de la conserver, de la préserver et de la retrouver.<br/> <br/>De plus en plus de gens aujourd'hui guérissent grâce à des méthodes naturelles de santé, physiquement et psychiquement. Ceci a besoin d'être plus largment connu. Devant une médecine allopathique qui utilise des substances et des moyens de plus en plus toxiques, aux effets secondaires imprévisibles ou même niés, les médecines naturelles ont besoin de retrouver leur juste place.<br/><br/> N'hésitez pas à nous <a href="mailto:contact@sante-globale.fr?subject=Retour d'experience">soumettre</a> vos propres questions personnelles et vos expériences dans le domaine de la santé.<br/> </p> </div> </div> <br /><div class="newsFooter"> <li class="category">Le 29 Août 2005, sous <a href="htpp://www.sante-globale.fr/nolink" title="Voir tous les dossier concernant le site Santé Globale" rel="category tag">Santé Globale</a></li> <li class="comments"><a href="http://www.sante-globale.fr/nolinkyet">Commentaire</a></li> </div> </div> <!-- Début de la barre droite --> <div id="side"> <h2>Derniers dossiers</h2> <ul> <li><a href="index.htm?=3" rel="Bookmark" title="Mise-à-jour">Mise-à-jour</a></li> </ul> <ul> <li><a href="index.htm?p=2" rel="Bookmark" title="Ajout de nouvelles sections">Ajout de sections</a></li> </ul> <ul> <li><a href="index.htm?p=1" rel="Bookmark" title="Ouverture du site">Ouverture du site</a></li> </ul> <h2>Partenaires</h2> <ul> <li><a href="http://www.institut-du-chaudron-de-jade.com/" >Chaudron de Jade</a></li> <li><a href="http://www.chineitsang.com/" >Chi Nei Tsang Institure</a></li> <li><a href="http://www.thereconnection.com/" >Eric Pearl</a></li> <li><a href="http://www.ibk.be/" >IBK</a></li> </ul> </div> <!-- Fin de la barre --> <div id="content"> <div class="post"><div class="data"> </div> <div class="storytitle" id="post-2"><a href="http://www.sante-globale.fr/" rel="bookmark" title= "Ajout de nouvelles sections">Ajout de nouvelles sections</a></div> <div class="storycontent"><p> Les sections Naturopathie et Chi Nei Tsang sont désormais disponibles.<br /><br />Vous trouverez un résumé et un descriptif de la nature des soins, l'origine des méthodes utilisées et leur utilité selon la nature du symptôme ou des problèmes rencontrés.<br /><br />Vos <a href="mailto:contact@sante-globale.fr?subject=Suggestions">suggestions et vos commentaires</a> sont, bien entendu, les bienvenus.<br /> </p> </div> </div> <br /><div class="newsFooter"> <li class="category">Le 28 Décembre 2005, sous <a href="http://www.sante-globale.fr/nolink">Santé Globale</a></li> <li class="comments"><a href="http://www.sante-globale.fr/nolinkyet">Commentaire</a></li> </div> </div> <div id="content"> <div class="post"><div class="data"> </div> <div class="storytitle" id="post-3"><a href="http://www.sante-globale.fr/" rel="bookmark" title="Mise-à-jour">Mise-à-jour</a></div> <div class="storycontent"><p>Les sections Aromathérapie, et Kinésiologie sont en ligne.<br /><br /> Ces sections ne demandent qu'à s'enrichir, n'hésitez donc pas à laisser nous envoyer vos suggestions par courriel à l'adresse: <a href="mailto:contact@sante-globale.fr?subject=Suggestions">contact@sante-globale.fr</a><br /></p> </div> </div> <br /><div class="newsFooter"> <li class="category">Le 29 Mars 2006, sous <a href="http://www.sante-globale.fr/nolink">Santé Globale</a></li> <li class="comments"><a href="http://www.sante-globale.fr/nolinkyet">Commentaires</a></li> </div> </div> <div id="footer"> Designed and maintained by <a href="mailto:kh.p@no-log.org?subject=Au sujet du site Santé Globale">Kh.P</a>. Hosted by <a href="http://www.icodia.com" >Icodia</a> and Powered by <a href="http://www.vim.org">Vim</a>.<br/> Site was optimized for <a href="http://galeon.sourceforge.net/" >Galeon</a> and <a href="http://www.mozilla.org/products/firefox/" >Firefox</a> browsers and may not display properly in others.<br/></div> </div> </body> </html>
Et les 12 erreurs du W3C validator:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427 body { background: #e6e6e6 fixed; height: 100%; font: 11px 'Lucida Grande', 'Gill Sans', Verdana, 'Trebuchet MS', Helvetica; margin: 0px; padding: 0; text-align: justify; } a:link { text-decoration: underline; color: #99cc33; } p { padding-left: 10px; } a:visited { color: #99cc33; } a:hover { color: #FF3333; } #logo { background: url(../img/logo.png) no-repeat; height: 35px; width: 145px; text-indent: -9000em; } #footer { color: #a8a4a4; font-size: 11px; font-variant: normal; font-weight: normal; height: 65px; padding-right: 25px; padding-top: 12px; width: 710px; background: url(../img/bas.png) no-repeat bottom; text-align: center; clear: both; margin-top: 0px; margin-bottom: 0px; margin-left: -12px; } #rap { position: relative; height: 100%; width: 710px; margin: 0 auto; background: #ffffff url(../img/background.png) repeat-y; } #header { position: relative; top: 0px; background: url(../img/haut.png) no-repeat; width: 710px; height: 21px; } #topleft { float: left; width: 432px; margin-left: 18px; margin-right: 10px; margin-top: 5px; } #flower { background: url(../img/flower.jpg) no-repeat; height: 141px; width: 465px; margin-top: 8px; margin-bottom: 30px; } #topright { float: right; position: relative; text-align: left; width: 220px; margin-left: 10px; } #navi { width: 165px; padding: 0 0 1em 0; margin-bottom: 0.9em; background-color: #ffffff; color: #333; font: normal 12px "Century Gothic", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif; margin-left: 0.8em; margin-top: -2px; } #navi ul{ list-style: none; margin: 0; padding: 0; border: none; } #navi li { margin: 0; padding-bottom: 1px; } #navi li a { display: block; padding: 3px 5px 2px 0.5em; border-left: 6px solid #dbdedc; color: #bfbfbf; text-decoration: none; width: 100%; } #navi li a:hover { color: #8ebc31; border-left: 6px solid #FF3333; border-right: 6px solid #dbdedc; padding-left: 1.2em; } #navi li a:active { color: #FF3333; border-left: 6px solid #FF3333; } #navi li a:current { color: #FF3333; border-left: 6px solid #FF3333; } #content { float: left; width: 435px; margin-left: 18px; border-right: 1px solid #d6d6d6; padding-right: 20px; } .storytitle { background-image: url(../img/bullet.png); background-position: left top; background-repeat: no-repeat; padding-left: 28px; padding-top: 8px; text-align: left; color: #333333; text-decoration: none; margin-left: 10px; font: bold 14px "Century Gothic", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif; height: 28px; margin-bottom: -10px; } .storytitle a:link, .storytitle a:visited { text-decoration: none; color: #333333; } .storytitle a:hover { color: #ff3234; text-decoration: underline; } .storycontent { line-height: 130%; text-align: justify; } .storycontent h1 { text-align: left; color: #88B72F; font-family: "Century Gothic", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif; font-size: 9px; text-decoration: none; text-transform: none; letter-spacing: .1em; margin-left: 10px; } .storycontent h2 { text-align: center; color: #FFCC00; font-family: "Century Gothic", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif; font-size: 9px; text-decoration: none; text-transform: none; letter-spacing: .1em; margin-left: 10px; } .storycontent li { list-style-type: none; } .storycontent li a { text-align: left; list-style-type: none; text-align: left; padding-top: 1px; padding-bottom: 1px; color: #9f9f9f; border-left-style: none; text-decoration: none; font: normal 11px "Century Gothic", "Gill Sans", "Bitstream Vera Sans", "Trebuchet MS", verdana, lucida, arial, helvetica, sans-serif; background: url(../img/off.png) no-repeat left center; padding-left: 13px; } .storycontent li a:visited { text-align: left; list-style-type: none; text-align: left; padding-top: 2px; padding-bottom: 2px; color: #9f9f9f; border-left-style: none; text-decoration: none; font: normal 11px "Century Gothic", "Bitstream Vera Sans", "Trebuchet MS", verdana, lucida, arial, helvetica, sans-serif; background: url(../img/off.png) no-repeat left center; padding-left: 13px; } .storycontent li a:hover { text-align: left; list-style-type: none; text-align: left; padding-top: 2px; padding-bottom: 2px; color: #FF3333; border-left-style: none; text-decoration: none; font: normal 11px "Century Gothic", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif; background: url(../img/on.png) no-repeat left center; padding-left: 13px; } .newsFooter { color: #b5b5b5; margin-bottom: 30px; margin-left: 10px; } .newsFooter li { display: inline; margin-right: 1em; color: #b5b5b5; margin-bottom: 5px; padding-bottom: 6px; } .newsFooter .category { background-image: url(../img/posted.png); background-position: left top; background-repeat: no-repeat; height: 33px; padding-left: 28px; padding-top: 8px; text-align: left; margin-top: 5px; } .newsFooter .category a { color: #FF3333; text-decoration: underline;} .newsFooter .category a:visited { color: #FF3333; text-decoration: underline;} .newsFooter .category a:hover { color: #b5b5b5; text-decoration: underline; } .newsFooter .comments { background-image: url(../img/comments.png); background-position: left top; background-repeat: no-repeat; height: 28px; padding-left: 28px; padding-top: 8px; text-align: left; } .newsFooter .comments a { color: #FF3333; text-decoration: underline; } .newsFooter .comments a:visited { color: #FF3333; text-decoration: underline; } .newsFooter .comments a:hover { text-decoration: underline; color: #b5b5b5; } #side { float: right; position: relative; text-align: left; width: 210px; padding-right: 26px; } #side h2 { text-align: left; color: #99CC33; font-family: "Century Gothic", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif; font-size: 13px; text-decoration: none; text-transform: none; letter-spacing: .1em; font-weight: bold; margin-bottom: 3px; margin-left: 39px; } #side ul { list-style-type: none; padding-right: 0px; text-align: left; margin-right: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; } #side li { font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: x-small; text-align: left; line-height: 150%; font-weight: bold; list-style-type: none; text-align: left; padding-top: 2px; padding-bottom: 2px; } #side li a { text-align: left; list-style-type: none; text-align: left; padding-top: 1px; padding-bottom: 1px; color: #9f9f9f; border-left-style: none; text-decoration: none; font: normal 11px "Century Gothic", "Gill Sans", "Bitstream Vera Sans", "Trebuchet MS", verdana, lucida, arial, helvetica, sans-serif; background: url(../img/off.png) no-repeat left center; padding-left: 13px; } #side li a:visited { text-align: left; list-style-type: none; text-align: left; padding-top: 2px; padding-bottom: 2px; color: #9f9f9f; border-left-style: none; text-decoration: none; font: normal 11px "Century Gothic", "Bitstream Vera Sans", "Trebuchet MS", verdana, lucida, arial, helvetica, sans-serif; background: url(../img/off.png)no-repeat left center; padding-left: 13px; } #side li a:hover { text-align: left; list-style-type: none; text-align: left; padding-top: 2px; padding-bottom: 2px; color: #FF3333; border-left-style: none; text-decoration: none; font: normal 11px "Century Gothic", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif; background: url(../img/on.png) no-repeat left center; padding-left: 13px; } #side ul li { list-style-type: none; text-align: left; padding-top: 2px; padding-bottom: 2px; } #side ul ul { list-style-type: none; margin: 0px 0px 0px 2px; padding: 0px; text-align: justify; } #side ul ul li { border: none; list-style-type: none; margin: 0px 0px 0px 2px; padding-bottom: 2px; padding-right: 10px; padding-top: 2px; text-align: left; }
Merci d'avance !!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 Below are the results of checking this document for XML well-formedness and validity. 1. Error Line 18 column 4: document type does not allow element "ul" here; missing one of "button", "map", "object", "ins", "del", "noscript" 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>"). ✉ 2. Error Line 19 column 55: document type does not allow element "form" here; assuming missing "li" start-tag. <form method="get" id="searchform" action="/index.php"> ✉ 3. Error Line 25 column 5: end tag for "li" omitted, but OMITTAG NO was specified. </ul> You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". ✉ 4. Info Line 19 column 1: start tag was here. <form method="get" id="searchform" action="/index.php"> 5. Error Line 27 column 15: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag. <div id="navi"> ✉ 6. Error Line 51 column 21: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li class="category">Le 29 Août 2005, sous <a href="htpp://www.sante-globale.f ✉ 7. Error Line 52 column 21: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li class="comments"><a href="http://www.sante-globale.fr/nolinkyet">Commentair ✉ 8. Error Line 83 column 9: ID "content" already defined. <div id="content"> An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element). ✉ 9. Info Line 39 column 9: ID "content" first defined here. <div id="content"> 10. Error Line 92 column 20: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li class="category">Le 28 Décembre 2005, sous <a href="http://www.sante-global ✉ 11. Error Line 93 column 20: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li class="comments"><a href="http://www.sante-globale.fr/nolinkyet">Commentaire ✉ 12. Error Line 96 column 9: ID "content" already defined. <div id="content"> ✉ 13. Info Line 39 column 9: ID "content" first defined here. <div id="content"> 14. Error Line 104 column 20: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li class="category">Le 29 Mars 2006, sous <a href="http://www.sante-globale.fr/ ✉ 15. Error Line 105 column 20: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li class="comments"><a href="http://www.sante-globale.fr/nolinkyet">Commentaire
b'sous.
Partager