Bonjour
Dans mon site j'utilise un menu déroulant pour aller vers d'autres sites.
Mais voila, il est valide w3c, SAUF quand je mets ce menu de navigation!!!
Voila le menu en question
Qu'est ce qui empêche d'être valide XHTML strict ?
J'ai des erreurs type
Modifié par Sim100 (22 Mar 2006 - 16:00)
Dans mon site j'utilise un menu déroulant pour aller vers d'autres sites.
Mais voila, il est valide w3c, SAUF quand je mets ce menu de navigation!!!
Voila le menu en question
<form action="">
<p><select name="listeurl" size="1" onchange="changeurl(this.form)" title="" />
<option selected="selected" value="">Choose a region
<option value="" />Anhui
<option value="http://beijing.chine-china.com" />Beijing
<option value="" />Fujian
<option value="" />Gansu
<option value="" />Guangdong
<option value="" />Guangxi
<option value="" />Guizhou
<option value="" />Hebei
<option value="" />Heilongiang
<option value="" />Henan
<option value="http://hong-kong.chine-china.com" />Hong Kong
<option value="" />Hubei
<option value="" />Hunan
<option value="" />Jiangsu
<option value="" />Jiangxi
<option value="" />Jilin
<option value="" />Liaoning
<option value="" />Ningxia
<option value="" />Quinghai
<option value="" />Shaanxi
<option value="" />Shandong
<option value="http://shanghai.chine-china.com" />Shanghai
<option value="" />Shanxi
<option value="" />Sichuan
<option value="" />Tianjin
<option value="" />Xinjiang
<option value="" />Yunnan
<option value="" />Zhejiang
</select></p>
</form>
Qu'est ce qui empêche d'être valide XHTML strict ?
J'ai des erreurs type
Line 31 column 78: end tag for "select" which is not finished.
...hange="changeurl(this.form)" title="" />
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 which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
Line 32 column 36: document type does not allow element "option" here; assuming missing "select" start-tag.
<option selected="selected" value="">Choose a region
✉
Error Line 33 column 18: document type does not allow element "option" here.
<option value="" />Anhui
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Modifié par Sim100 (22 Mar 2006 - 16:00)