| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Auteur |
Message |
tricus PR0

Inscrit le: 05 Mai 2006 Messages: 66
|
Posté le: Mar Avr 22, 2008 5:30 pm Sujet du message: Validation Xhtml |
|
|
Salut,
J'essaye d'optimiser mon site pour le valider W3C, mais je galère pas mal.
J'ai pas mal d'erreur (une trentaine) essentiellement dues a ce bout de code perso édité avec namowebeditor et j'ai essayé de l'optimiser avec pspad, mais a priori il n'est pas du tout valide.
Quelqu'un peu m'aider ??
| Code: | <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
/*<![CDATA[*/
div.c3 {text-align: center}
span.c2 {font-size:10pt;}
p.c1 {text-align: center}
/*]]>*/
</style>
</head>
<body>
<table border="1" width="100%" height="3">
<tr height="3">
<td width="140">
<p class="c1">
<span class="gensmall">Photo du mois</span>
</p>
</td>
<td width="488" height="110" rowspan="2">
<p class="c1">
<script type="text/javascript">
//<![CDATA[
<!--
google_ad_client = "pub-5642800655258905";
/* Accueil, date de creation 270208 */
google_ad_slot = "2877600967";
google_ad_width = 468;
google_ad_height = 60;
//-->
//]]>
</script> <script type="text/javascript" src=
"http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
</td>
<td width="112">
<p class="c1">
<span class="gensmall">{L_METEO_VIGI}</span>
</p>
</td>
<td width="110">
<p class="c1">
<span class="gensmall">{L_METEO_LOCAL}</span>
</p>
</td>
<td align="center" width="99" rowspan="2">
<embed src="horloge/Clock3.swf" quality="high" width="90" height="90" type=
"application/x-shockwave-flash" pluginspage=
"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />
</td>
</tr>
<tr>
<td width="140">
<p class="c1">
<span class="c2"><a href=
"http://www.sp-68.com/php/nouveaux-fpt-tunnel-colmar-et-st-marie-t4190.html" target=
"_top"><img src="imagessite/vignfptsrtunnel.jpg" width="120" height="80" border="0"
alt="Image" /></a></span>
</p>
</td>
<td width="112">
<div class="c3">
<a href="http://www.meteo.fr/meteonet/vigilance/index.html" target="_blank"><img src=
"http://www.meteo.fr/meteonet/vigilance/cartes/derniers/mn.gif?411650" border="0" alt=
"Image" /></a>
</div>
</td>
<td width="110">
<p class="c1">
<a href="http://www.meteo-strasbourg.net" target="_blank"><img src=
"http://www.meteo-strasbourg.net/temps.php" alt="la météo en Alsace" border="0" height=
"74" width="100" /></a>
</p>
</td>
</tr>
</table>
</body>
</html> |
|
_________________ Forum des Sapeurs-Pompiers : www.sp-68.com |
|
| Revenir en haut de page |
|
 |
|
 |
R1_Bzh phpBB SEO Team

Inscrit le: 04 Juil 2007 Messages: 80 Localisation: Toulouse
|
Posté le: Mer Avr 23, 2008 7:53 am Sujet du message: Re: Validation Xhtml |
|
|
Tu pourrais plutôt mettre le lien vers le validator w3C ? on verrait les erreurs et sur quelle page et ce serait un poil plus simple pour corriger éventuellement les soucis
Merci |
|
|
| Revenir en haut de page |
|
 |
tricus PR0

Inscrit le: 05 Mai 2006 Messages: 66
|
Posté le: Mer Avr 23, 2008 10:10 am Sujet du message: Re: Validation Xhtml |
|
|
effectivement le voici :
http://www.validome.org/validate/?uri=http://www.sp-68.com
En sachant que sur le site W3C la validation est bloquée par un message d'erreur du à un caractère non UTF8 à une ligne qui n'existe même pas !!!
in line 2144 alors que la source en comporte 2060 !!! |
_________________ Forum des Sapeurs-Pompiers : www.sp-68.com |
|
| Revenir en haut de page |
|
 |
R1_Bzh phpBB SEO Team

Inscrit le: 04 Juil 2007 Messages: 80 Localisation: Toulouse
|
Posté le: Jeu Avr 24, 2008 8:30 am Sujet du message: Re: Validation Xhtml |
|
|
D'après le w3c tu as une erreur sur la ligne 2116, ce qui correspond grosso-modo au footer de ton site
http://www.sp-68.com/php/portal.php:
The error was: utf8 "\xE9" does not map to Unicode
| Code: | <td class="block_row2">
<span class="copyright">
<a href="http://sjpphpbb.net/phpbb3"> SJPPHPBB Portal (SjpPortal-phpBB3)</a> 2005 - 2007
|
N'aurais tu pas éditer ton fichier avec l'octet de signature utf8 activé ?
Bref, pour en revenir au code, j'ai regardé un peu ton source, et tu imbrique beaucoup trop de balise pour pas grand chose.
| Code: | <td width="112">
<div class="c3">
<a href="http://www.meteo.fr/meteonet/vigilance/index.html" target="_blank"><img src=
"http://www.meteo.fr/meteonet/vigilance/cartes/derniers/mn.gif?411650" border="0" alt=
"Image" /></a>
</div>
</td>
<td width="110">
<p class="c1">
<a href="http://www.meteo-strasbourg.net" target="_blank"><img src=
"http://www.meteo-strasbourg.net/temps.php" alt="la m�t�o en Alsace" border="0" height=
"74" width="100" /></a>
</p>
</td>
|
Pourquoi empiler un div dans un td pour mettre un a dedans ? idem pour la balise p.
Les validateurs ne sont pas trop friand de ce genre de chose et puis ça alourdit pour rien. Un petit peu de ménage dans le code html pour le rendre plus lisible est plus léger et tu y verras déjà beaucoup plus clair je pense.
Courage  |
|
|
| Revenir en haut de page |
|
 |
|
| Navigation |
Autres sujets de discussion |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |