Problème XHTML 1.0 Strict - Thème Sunny [Réglé]
Validation par le W3 de ma page web
Créations de Thèmes
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
Bonsoir !
J'ai à la base le thème Sunny sur mon site. Je l'ai modifié, je cherche à faire quelquechose de strict en XHTML 1.0, mais il me reste 5 erreur (5 fois la même).
L'erreur se situe dans le fichier : templates/sunny/modules/connect/connect_mini.tpl - (ligne 19 à 25)
Citation :
<form action="{U_CONNECT}" method="post" onsubmit="return check_connect();" style="text-align:right;display:inline;">
<label><input size="15" type="text" class="text" id="login" name="login" value="{L_PSEUDO}" onclick="if( this.value == '{L_PSEUDO}' ) this.value = '';" maxlength="25" /></label>
<label><input size="15" type="password" id="password" name="password" class="text" maxlength="30" /></label>
<label><input checked="checked" type="checkbox" name="auto" /></label>
<input type="submit" name="connect" value="{L_CONNECT}" class="submit" />
</form>
Ci - joint le fichier au format texte
Merci bien de votre aide

Bonne Soirée !
Édité par Surcouf Le 18/02/2010 à 18h29
Surcouf
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
Citation :
Line 91, Column 7: 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><input size="15" type="text" class="text" id="login" name="login" value="
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>").
<label><input size="15" type="text" class="text" id="login" name="login" value="
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>").
Voilà le rapport
Surcouf
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Code TPL :
<form action="{U_CONNECT}" method="post" onsubmit="return check_connect();" style="text-align:right;display:inline;"> <p><input size="15" type="text" class="text" id="login" name="login" value="{L_PSEUDO}" onclick="if( this.value == '{L_PSEUDO}' ) this.value = '';" maxlength="25" /></p> <p><input size="15" type="password" id="password" name="password" class="text" maxlength="30" /></p> <p><input checked="checked" type="checkbox" name="auto" /></p> <p><input type="submit" name="connect" value="{L_CONNECT}" class="submit" /></p> </form>
Test avec le validateur .
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
Surcouf
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Code TPL :
<form action="{U_CONNECT}" method="post" onsubmit="return check_connect();" style="text-align:right;display:inline;"> <div> <input size="15" type="text" class="text" id="login" name="login" value="{L_PSEUDO}" onclick="if( this.value == '{L_PSEUDO}' ) this.value = '';" maxlength="25" /> <input size="15" type="password" id="password" name="password" class="text" maxlength="30" /> <input checked="checked" type="checkbox" name="auto" /> <input type="submit" name="connect" value="{L_CONNECT}" class="submit" /> </div> </form>
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
Surcouf
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
Édité par Surcouf Le 18/02/2010 à 21h09
Surcouf
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Code TPL :
<form action="{U_CONNECT}" method="post" onsubmit="return check_connect();" style="text-align:right;display:inline;"> <span> <input size="15" type="text" class="text" id="login" name="login" value="{L_PSEUDO}" onclick="if( this.value == '{L_PSEUDO}' ) this.value = '';" maxlength="25" /> <input size="15" type="password" id="password" name="password" class="text" maxlength="30" /> <input checked="checked" type="checkbox" name="auto" /> <input type="submit" name="connect" value="{L_CONNECT}" class="submit" /> </span> </form>
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
l'affichage est bon, mais il y a encore 5 erreurs
Ce ne sont plus les mêmes
W3 Validator
Surcouf
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet

Faudrait revoir avec le div peut tu mettre le code complet avec le input register car tu ne la pas mis dans ton 1er post .
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
Tu as le code complet ici
Surcouf
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Code TPL :
# IF C_USER_NOTCONNECTED # <script type="text/javascript"> <!-- function check_connect(){ if(document.getElementById('login').value == "") { alert("{L_REQUIRE_PSEUDO}"); return false; } if(document.getElementById('password').value == "") { alert("{L_REQUIRE_PASSWORD}"); return false; } return true; } --> </script> <div style="float:right;margin-right:8px;"> <form action="{U_CONNECT}" method="post" onsubmit="return check_connect();" style="text-align:right;display:inline;"> <div> <input size="15" type="text" class="text" id="login" name="login" value="{L_PSEUDO}" onclick="if( this.value == '{L_PSEUDO}' ) this.value = '';" maxlength="25" /> <input size="15" type="password" id="password" name="password" class="text" maxlength="30" /> <input checked="checked" type="checkbox" name="auto" /> <input type="submit" name="connect" value="{L_CONNECT}" class="submit" /> </form> # IF C_USER_REGISTER # <form action="{U_REGISTER}" method="post" style="display:inline;"> <input type="submit" name="register" value="{L_REGISTER}" class="submit" /></div> </form> # ENDIF # </div> # ENDIF #
Surcouf Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre Surcouf
- Inscrit le : 07/07/2009
- Site internet
7 erreurs 
Sacré standar du web 
W3 Validator
Surcouf
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie
