Dans ma page j'ai rajouté un formulaire, mais maintenant la page n'est plus valide avec le validateur du W3C
Pourtant je ne vois pas ce qu'il a d'invalide ce formulaire, et j'ai beau regardé je ne vois pas
Code : Tout sélectionner
<form name="frmchoixCSS" method="get" >
<input type="radio" name="choixCSS" value="1" >normale</input>
<input type="radio" name="choixCSS" value="2" >minimale</input>
<input type="Submit" value="OK"/>
</form>
W3C a écrit : #
Line 26, column 12: there is no attribute "name"
<form name="frmchoixCSS" method="POST" >
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 26, column 38: value of attribute "method" cannot be "POST"; must be one of "get", "post"
<form name="frmchoixCSS" method="POST" >
The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; a value like “selected="true"” is not allowed.
✉
#
Line 26, column 40: required attribute "action" not specified
<form name="frmchoixCSS" method="POST" >
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
✉
#
Line 27, column 50: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
<input type="radio" name="choixCSS" value="1" />Normale
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 27, column 51: character data is not allowed here
<input type="radio" name="choixCSS" value="1" />Normale
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).
✉
#
Line 28, column 50: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
<input type="radio" name="choixCSS" value="2" />
✉
#
Line 30, column 22: value of attribute "type" cannot be "Submit"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button"
<input type="Submit" value="OK" style="font-size: 9px;" />
✉
#
Line 30, column 60: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
<input type="Submit" value="OK" style="font-size: 9px;" />
✉
#
Line 31, column 6: end tag for "form" which is not finished
</form>
Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
Voila, je ne trouve pas mais en ce moment je suis aussi un peu KO
Je vous remerci d'avance