[XHTML 1.0 Strict] - Formulaire valide

WRInaute accro
Hello,

Il ne me reste plus qu'une chose à faire pour être complètement valide XHTML 1.0 Strict (ouais, j'm'y suis mis ;) )...

Mon formulaire de recherche ne passe pas:

Code:
<div class="vert_menu_link">
<form id="formrecherche" method="post" action="recherche.html">
<input type="text" name="term" size="15" maxlength="255" />
<input type="image" src="img/design/search.gif" alt="Chercher..." value="Rechercher !" />
</form>
</div>

L'erreur retournée est la suivante:

W3C Validator a dit:
Error Line 59 column 32: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input name="term" id="term"/>
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>").

Error Line 60 column 88: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
...alt="Search..." value="Rechercher !"/>

Je viens d'écumer les 3/4 du Web, mais je ne trouve pas de modif qui fonctionne :(

A l'aaaaide :oops:
 
WRInaute occasionnel
Simple simple vraiment simple ^^ enfin je vais t'aider carl e mien est valide également et cela est tout bête ;)

rajoute devant ts input la balise <p></p>
soit:

Code:
<div class="vert_menu_link"> 
<form id="formrecherche" method="post" action="recherche.html"> 
<p>
<input type="text" name="term" size="15" maxlength="255" /> 
<input type="image" src="img/design/search.gif" alt="Chercher..." value="Rechercher !" /> </p>
</form> 
</div>
 
WRInaute occasionnel
essaye:

<form id="formrecherche" method="post" action="recherche.html">
<p class="vert_menu_link">
<form id="formrecherche" method="post" action="recherche.html">
<input type="text" name="term" size="15" maxlength="255" />
<input type="image" src="img/design/search.gif" alt="Chercher..." value="Rechercher !" />
</p>
</form>
 
WRInaute accro
:oops:

Si j'eû su... j'm'aurais tu :?

Merci beaucoup à vous deux...

A'y-é, suis Strict :D

... 'a plus qu'à mettre du contenu... :mrgreen:
 
Discussions similaires
Haut