Validation XHTML strict

Validation XHTML strict - HTML/CSS - Programmation

Marsh Posté le 30-07-2004 à 10:24:36    

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>" ).

Reply

Marsh Posté le 30-07-2004 à 10:24:36   

Reply

Marsh Posté le 30-07-2004 à 10:29:58    

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
Reply

Marsh Posté le 30-07-2004 à 10:32:51    

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

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed