Help !! erreurs xhtml svp

Fermé
luwill - 24 nov. 2007 à 18:10
fiddy Messages postés 11069 Date d'inscription samedi 5 mai 2007 Statut Contributeur Dernière intervention 23 avril 2022 - 24 nov. 2007 à 21:06
Bonjour,
je suis étudiante (dut service et réseau de communcation 1ère année), et je dois programmer, dans le cadre d'exercices, en xhtml, et ma page comporte deux erreurs que validator me désigne comme ceci :
# Line 11, Column 23: document type does not allow element "table" here.

<table width="100%" >



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).
# Error Line 41, Column 9: end tag for "table" which is not finished.

</table>



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, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.



je vous serais très reconnaissante de bien vouloir m'aider car je n'arrive pas à comprendre mes erreurs.

1 réponse

fiddy Messages postés 11069 Date d'inscription samedi 5 mai 2007 Statut Contributeur Dernière intervention 23 avril 2022 1 841
24 nov. 2007 à 21:06
Salut,

Le message me paraît clair. Tu as utilisé la balise table dans une partie inapropriée.
Poste ton code en entier, si tu veux qu'on puisse t'aider.

Cordialement
0