Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1362 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Validation XHTML strict

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Validation XHTML strict

n°810802
El_gringo
Posté le 30-07-2004 à 10:24:36  profilanswer
 

J'ai 3 erreurs dont je ne trouve pas la cause. Si quelqu'un peut m'aider :


#
 
Line 32, column 37: there is no attribute "onLoad"
 
<body id="id-dam-central" onLoad="setFocus()">
 
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
 
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
 
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
 

#
 
Line 45, column 54: document type does not allow element "select" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
 
<select id="script" name="script" >
 
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>" ).
 

#
 
Line 79, column 52: 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" value="OK"/>
 
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>" ).

mood
Publicité
Posté le 30-07-2004 à 10:24:36  profilanswer
 

n°810811
antp
Super Administrateur
Champion des excuses bidons
Posté le 30-07-2004 à 10:29:58  profilanswer
 

onload au lieu de onLoad
 
le select, il doit être dans un des tags qu'il a énumérés
 
idem pour le input (mêmes tags que le select je pense)


---------------
mes programmes ·· les voitures dans les films ·· apprenez à écrire
n°810818
El_gringo
Posté le 30-07-2004 à 10:32:51  profilanswer
 

Ok. Désolé pour la question, c'est la 1ère fois que je me soucie vraiment des normes.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Validation XHTML strict

 

Sujets relatifs
formulaire - ouvrir une page après validationProblème validation fichier CSS par le WC3
Cherche prog pour XSLT (XML + XSL) vers XHTML et PDF sous WinXPLien hypertexte, target et XHTML 1.1
Grille (border="1") tableau en xhtml ? [Resolu]HTML, XHTML : lequel utiliser ?
Validation de code HTML : comprend pas là...css xhtml images ie6
Formulaire de sondage XHTML/CSS ! Help ![XHTML] problème de validation d'un XHTML strict
Plus de sujets relatifs à : Validation XHTML strict


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR