bonjour,
lorsque que je valide ma page, le validateur me retourne 4 erreurs concernant un formulaire dont voici le code :
Les 4 erreurs sont :
# document type does not allow element "label" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<label for="mel">Veuillez inscrire votre adresse mail ci-dessous :</label>
#document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
...adresse mail ci-dessous :</label><br />
#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 type="text" name="mel" id="mel"/>
#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 type="image" src="img/button_ok.png" />
Pour les 4 erreurs, il est précisé ceci :
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>").
Ya t-il quelquechose qui cloche dans mon formulaire ???
Je pensais pourtant avoir suivi les règles...
lorsque que je valide ma page, le validateur me retourne 4 erreurs concernant un formulaire dont voici le code :
<form action="" method="post">
<h2>Pour recevoir plus d'informations</h2>
<label for="mel">Veuillez inscrire votre adresse mail ci-dessous :</label><br />
<input type="text" name="mel" id="mel"/>
<input type="image" src="img/button_ok.png" />
</form>
Les 4 erreurs sont :
# document type does not allow element "label" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<label for="mel">Veuillez inscrire votre adresse mail ci-dessous :</label>
#document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
...adresse mail ci-dessous :</label><br />
#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 type="text" name="mel" id="mel"/>
#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 type="image" src="img/button_ok.png" />
Pour les 4 erreurs, il est précisé ceci :
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>").
Ya t-il quelquechose qui cloche dans mon formulaire ???
Je pensais pourtant avoir suivi les règles...