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

WRInaute passionné
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:
<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 ??
 
WRInaute impliqué
Il faut que tu ouvre et que tu fermes ton formulaire dans le <td>

comme ça :
Code:
<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>
 
WRInaute passionné
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
 
Discussions similaires
Haut