Probleme de validation html

Fermé
mamars - 23 nov. 2008 à 11:46
 mamars - 23 nov. 2008 à 22:00
Bonjour,
Je viens de me lancer dans la création de site internet. Cependant je bloque sur la validation.Merci de m'aider, voici mon code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-->
<html>
<head>
<title>Bienvenue sur mon espace perso</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' type='text/css' href='index.css'>
</head>

<body>

<div id="img1">
<img src="image/bienvenue.png" width="130" height="500" alt=""/>
</div>


<table id="Tableau_01" width="338" height="464" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5">
<img src="images/haut.jpg" width="337" height="155" alt=""></td>
<td>

<img src="images/spacer.gif" width="1" height="155" alt=""></td>
</tr>
<tr>
<td>
<img src="images/page1site_02.jpg" width="163" height="61" alt=""></td>
<td colspan="2" rowspan="2">
<a href="passions.html"><img src="images/passions.jpg" border="0" width="83" height="99" alt="" onMouseOver="this.src='images/passions2.jpg'" onMouseOut="this.src='images/passions.jpg'"></td></a>
<td colspan="2" rowspan="3">
<a href="http://src.iut-velizy.uvsq.fr/"><img src="images/iut.jpg" border="0" width="91" height="133" alt="" onMouseOver="this.src='images/iut2.jpg'" onMouseOut="this.src='images/iut.jpg'"></td></a>

<td>
<img src="images/spacer.gif" width="1" height="61" alt=""></td>
</tr>
<tr>
<td rowspan="5">
<a href="monCV.html"><img src="images/cv.jpg" border="0" width="163" height="247" alt="" onMouseOver="this.src='images/cv2.jpg'" onMouseOut="this.src='images/cv.jpg'"></td></a>
<td>
<img src="images/spacer.gif" width="1" height="38" alt=""></td>
</tr>

<tr>
<td colspan="2" rowspan="2">
<img src="images/page1site_06.jpg" width="83" height="71" alt="" ></td>
<td>
<img src="images/spacer.gif" width="1" height="34" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/page1site_07.jpg" width="91" height="37" alt=""></td>

<td>
<img src="images/spacer.gif" width="1" height="37" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/page1site_08.jpg" width="16" height="138" alt=""></td>
<td colspan="2">
<a href="mecontacter.html"><img src="images/page1site_09.jpg" border="0" width="141" height="71" alt="" onMouseOver="this.src='images/page1site_092.jpg'" onMouseOut="this.src='images/page1site_09.jpg'"></td></a>



<td rowspan="2">

<img src="images/page1site_10.jpg" width="17" height="138" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="71" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/page1site_11.jpg" width="141" height="67" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="67" alt=""></td>

</tr>
<tr>
<td>
<img src="images/spacer.gif" width="163" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="67" height="1" alt=""></td>
<td>

<img src="images/spacer.gif" width="74" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="17" height="1" alt=""></td>
<td></td>
</tr>
</table>




</body>
</html>

5 réponses

vdfinternet Messages postés 469 Date d'inscription samedi 15 mars 2008 Statut Membre Dernière intervention 4 janvier 2014 38
23 nov. 2008 à 11:53
Salut

Tu as un problème pour valider ou c'est ta page qui n'est pas valide ?
0
En faite mon site marche , cette page fonctionne, mais elle ne passe pas au validateur W3C et je n'arrive pas à corriger les erreurs.merci
0
vdfinternet Messages postés 469 Date d'inscription samedi 15 mars 2008 Statut Membre Dernière intervention 4 janvier 2014 38
23 nov. 2008 à 19:20
Pour faire un site valide W3C 4.01 il faut exclure toutes fonctions onMouse sur le code ici, et il faut plutôt séparer le css du code html mais c'est pas obligatoire.
0
Merci mais j'ai enfin réussi, voila mon code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-->
<html>
<head>
<title>Bienvenue sur mon espace perso</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' type='text/css' href='index.css'>
</head>

<body>

<div id="img1">
<img src="image/bienvenue.png" width="130" height="500" alt="">
</div>


<table id="Tableau_01" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5">
<img src="images/haut.jpg" width="337" height="155" alt=""></td>
<td>

<img src="images/spacer.gif" width="1" height="155" alt=""></td>
</tr>
<tr>
<td>
<img src="images/page1site_02.jpg" width="163" height="61" alt=""></td>
<td colspan="2" rowspan="2">
<a href="passions.html"><img src="images/passions.jpg" border="0" width="83" height="99" alt="" onMouseOver="this.src='images/passions2.jpg'" onMouseOut="this.src='images/passions.jpg'"></a></td>
<td colspan="2" rowspan="3">
<a href="http://src.iut-velizy.uvsq.fr/"><img src="images/iut.jpg" border="0" width="91" height="133" alt="" onMouseOver="this.src='images/iut2.jpg'" onMouseOut="this.src='images/iut.jpg'"></a></td>

<td>
<img src="images/spacer.gif" width="1" height="61" alt=""></td>
</tr>
<tr>
<td rowspan="5">
<a href="monCV.html"><img src="images/cv.jpg" border="0" width="163" height="247" alt="" onMouseOver="this.src='images/cv2.jpg'" onMouseOut="this.src='images/cv.jpg'"></a></td>
<td>
<img src="images/spacer.gif" width="1" height="38" alt=""></td>
</tr>

<tr>
<td colspan="2" rowspan="2">
<img src="images/page1site_06.jpg" width="83" height="71" alt="" ></td>
<td>
<img src="images/spacer.gif" width="1" height="34" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/page1site_07.jpg" width="91" height="37" alt=""></td>

<td>
<img src="images/spacer.gif" width="1" height="37" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/page1site_08.jpg" width="16" height="138" alt=""></td>
<td colspan="2">
<a href="mecontacter.html"><img src="images/page1site_09.jpg" border="0" width="141" height="71" alt="" onMouseOver="this.src='images/page1site_092.jpg'" onMouseOut="this.src='images/page1site_09.jpg'"></a></td>



<td rowspan="2">

<img src="images/page1site_10.jpg" width="17" height="138" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="71" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/page1site_11.jpg" width="141" height="67" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="67" alt=""></td>

</tr>
<tr>
<td>
<img src="images/spacer.gif" width="163" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="67" height="1" alt=""></td>
<td>

<img src="images/spacer.gif" width="74" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="17" height="1" alt=""></td>
<td></td>
</tr>
</table>




</body>
</html>
0
vdfinternet Messages postés 469 Date d'inscription samedi 15 mars 2008 Statut Membre Dernière intervention 4 janvier 2014 38
23 nov. 2008 à 21:38
Et il est valid 4.10 ?
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Non..
0