Torna indietro   Hardware Upgrade Forum > Software > Programmazione

Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 13-06-2013, 21:30   #1
aeroxr1
Senior Member
 
Iscritto dal: Mar 2006
Messaggi: 2057
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">
qui lo stamp dell'errore , che sopra mi sembra alquanto illeggibile .. XD

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.
aeroxr1 č offline   Rispondi citando il messaggio o parte di esso
Old 14-06-2013, 09:56   #2
wingman87
Senior Member
 
Iscritto dal: Nov 2005
Messaggi: 2789
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
wingman87 č offline   Rispondi citando il messaggio o parte di esso
 Rispondi


Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB č On
Le Faccine sono On
Il codice [IMG] č On
Il codice HTML č Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 06:22.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v