Ciao a tutti, ho dei problemi con il convalidatore del w3c riguardo un form; ne sto uscendo pazzo![]()
Vi incollo di seguito gli errori.. ( sono tanti..eppure sono poche righe di codice)
# Error Line 23 column 11: there is no attribute "name".
<form name="loginform" action="login.php" method="post">
# Error Line 24 column 17: 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="user">user</label>
# Error Line 25 column 139: 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.
...'" onmouseout="this.className='form'">
# Error Line 25 column 140: end tag for "input" omitted, but OMITTAG NO was specified.
..." onmouseout="this.className='form'">
# Info Line 25 column 0: start tag was here.
<input id="user" type="text" value="unnamed" size="12" class="form" onmouseover=
# Error Line 26 column 0: character data is not allowed here.
password <input id="pass" type="password" size="8" class="form" onmouseover="thi
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a
aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).
# Error Line 26 column 135: 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.
...'" onmouseout="this.className='form'">
# Error Line 26 column 136: end tag for "input" omitted, but OMITTAG NO was specified.
..." onmouseout="this.className='form'">
# Info Line 26 column 9: start tag was here.
password <input id="pass" type="password" size="8" class="form" onmouseover="thi
# Error Line 27 column 44: 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="submit" id="btnlogin" value="">
Il codice del form e' il seguente
codice:<form name="loginform" action="login.php" method="post"> <label for="user">user</label> <input id="user" type="text" value="unnamed" size="12" class="form" onmouseover="this.className='form2'" onmouseout="this.className='form'"> password <input id="pass" type="password" size="8" class="form" onmouseover="this.className='form2'" onmouseout="this.className='form'"> <input type="submit" id="btnlogin" value=""> </form>
Vi ringrazio anticipatamente
![]()