gabrielebr Posted November 10, 2010 Share Posted November 10, 2010 hello,where is the error in this code ? The W3c validation says "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="hidden" name="recipient" value="newsletter@comune.arcene.bg.it" /> <div><form action="/cgi-bin/FormMail.pl" method="post"><input type="hidden" name="recipient" value="newsletter@comune.arcene.bg.it" /> <input type="hidden" name="subject" value="iscrizione newsletter" /> <input type="hidden" name="redirect" value="http://www.comune.arcene.bg.it/grazienews.html" /> <label for="fname">Nome (facoltativo)</label> <input type="text" name="realname" value="" size="40" maxlength="40" id="fname" /><br /><br /><label for="age">Età (facoltativo)</label> <input type="text" name="eta" value="" size="3" maxlength="3" id="age" /><br /><br /><label for="posta">E-mail</label> <input type="text" name="email" size="40" id="posta" /><br /><br /><input type="checkbox" name="conferma privacy" id="moreinfo" /><label for="moreinfo">Ho letto l' <strong><a href="privacy.html" onclick="msgWindow=window.open('privacy.html', 'myWin', 'scrollbars,resizable,width=650,height=500,screenX=200,screenY=85,left=200,top=85'); msgWindow.focus(); return false">informativa</a></strong> e autorizzo il trattamento dei dati</label><br /><br /><div style="margin-left: 150px;"><input name="invia" type="submit" value="invia" align="top" /> <input name="reset" type="reset" value="cancella" align="bottom" /></div></form><br /></div> Link to comment Share on other sites More sharing options...
boen_robot Posted November 10, 2010 Share Posted November 10, 2010 The error message says it: You can't write the "input" element there. But you can write one of [the list above], and those elements should be able to contain "input" elements. Surround everything within the "form" element with a "div", and you should be all set. Link to comment Share on other sites More sharing options...
gabrielebr Posted November 10, 2010 Author Share Posted November 10, 2010 The error message says it: You can't write the "input" element there. But you can write one of [the list above], and those elements should be able to contain "input" elements. Surround everything within the "form" element with a "div", and you should be all set.Thank you very much !I misinterpreted the error message and I just added a div at the beginning of the form. It is clear that it was not enough.regardsGabriele Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.