[Résolu] Dernière erreur de validation HTML "bizarre ?&

Consultez la formation au référencement naturel Google de WebRankInfo / Ranking Metrics


Julia41
WRInaute impliqué
WRInaute impliqué
 
Messages: 488
Inscription: Ven Aoû 31, 2007 21:17

[Résolu] Dernière erreur de validation HTML "bizarre ?&

Message le Lun Jan 28, 2008 3:32

Bon, alors je vous colle ici le code source de ma dernière erreur...
Vraiment bizarre, mais peut-être est-ce mon niveau d'anglais qui me fait défault.

L'erreur vient du form selon le validateur du W3C et c'est fait à partir d'un petit CMS vraiment pas connu.

Code: Tout sélectionner
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <form method="post" action="account-login.php">
    <td>
      <div align=center>
      <table border=0 cellpadding="5">
         <tr><td>
            <p align=center><font face=Verdana size=1><b>User
:</b></font></td><td align=left>
            <input type=text size=10 name=username style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-style: solid; border-width: 1px; background-color: #C0C0C0" /></td></tr>

         <tr><td><font face=Verdana size=1><b>Pass
:</b></font></td><td align=left>
            <input type=password size=10 name=password style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-style: solid; border-width: 1px; background-color: #C0C0C0" /></td></tr>
         <tr><td>&nbsp;</td><td align=left>
            <input type=submit value=Verify style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-style: solid; border-width: 1px"></td></tr>
      </table>
      </div>
      </td>
    </form>

   </tr>
   <tr>
<td align="center"><a href="account-delete.php">Effacer Compte</a><br><a href="account-recover.php">Récupérer Compte</a></td> </tr>
   </table>
<br /></td>
</tr>
</table>


Erreur du W3C :
Line 280, Column 48: document type does not allow element "FORM" here; missing one of "TH", "TD" start-tag.

<form method="post" action="account-login.php">

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>").


Donc voilou... Je ne comprends pas trop le problème, ou l'erreur, mais c'est la seule erreur que je ne comprends pas, d'autre que je laisse plus ou moins volontairement, mais que je comprends, mais celle-ci ??
Dernière édition par Julia41 le Lun Jan 28, 2008 7:14, édité 1 fois.

darkjukka
WRInaute passionné
WRInaute passionné
 
Messages: 612
Inscription: Sam Avr 28, 2007 12:34

Message le Lun Jan 28, 2008 4:15

Il faut que tu ouvre et que tu fermes ton formulaire dans le <td>

comme ça :
Code: Tout sélectionner
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td>
      <form method="post" action="account-login.php">
      <div align=center>
      <table border=0 cellpadding="5">
         <tr><td>
            <p align=center><font face=Verdana size=1><b>User
:</b></font></td><td align=left>
            <input type=text size=10 name=username style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-style: solid; border-width: 1px; background-color: #C0C0C0" /></td></tr>

         <tr><td><font face=Verdana size=1><b>Pass
:</b></font></td><td align=left>
            <input type=password size=10 name=password style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-style: solid; border-width: 1px; background-color: #C0C0C0" /></td></tr>
         <tr><td>&nbsp;</td><td align=left>
            <input type=submit value=Verify style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-style: solid; border-width: 1px"></td></tr>
      </table>
      </div>
    </form>
      </td>

   </tr>
   <tr>
<td align="center"><a href="account-delete.php">Effacer Compte</a><br><a href="account-recover.php">Récupérer Compte</a></td> </tr>
   </table>
<br /></td>
</tr>
</table>


Julia41
WRInaute impliqué
WRInaute impliqué
 
Messages: 488
Inscription: Ven Aoû 31, 2007 21:17

Message le Lun Jan 28, 2008 7:14

Alors là, merci...
D'avoir trop la tête dedans on doit plus rien voir... :oops:
Bon, plus d'erreurs mais plus que 800 avertissements...

Merci à toi :D


Formation recommandée sur ce thème :

Formation Référencement naturel Google : apprenez une méthode efficace pour optimiser à fond le référencement naturel dans Google de façon durable... Formation animée par Olivier Duffez et Fabien Facériès, experts en référencement naturel.

Tous les détails sur le site Ranking Metrics : programme, prix, dates et lieux, inscription en ligne.

Lectures recommandées sur ce thème :



Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités