|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Mar 2006
Messaggi: 2056
|
Domanda su errore di validazione W3C html strict 4.01 .
ciao,
questo è la parte di codice su cui il w3c mi da errore : Codice:
<!-- form login --> <form action="" id="login-form"> <fieldset> <span class="text"> <input type="text" value="Username"> </span> <span class="text"> <input type="password" value="Password"> </span> <input type="submit" id="submit" name="submit" value="Login"> </fieldset> </form> Codice:
Validation Output: 2 Errors Line 17, Column 22: start tag for "LEGEND" omitted, but its declaration does not permit this <span class="text"> Line 24, Column 13: end tag for "LEGEND" omitted, but its declaration does not permit this </fieldset> You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag. Line 17, Column 4: start tag was here <span class="text"> http://imageshack.us/photo/my-images/5/erroriw.png/ sto validando in HTML 4.01 STRICT . Dove sbaglio ? EDIT: trovato l'errore.. non avevo messo volutamente il LEGEND .. perchè devo includerlo per forza ? Ultima modifica di aeroxr1 : 13-06-2013 alle 21:50. |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Nov 2005
Messaggi: 2775
|
Come primo figlio di fieldset devi mettere un elemento legend, anche vuoto ma lo devi mettere.
https://developer.mozilla.org/en-US/...Element/legend https://developer.mozilla.org/en-US/...ement/fieldset |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:57.