Kontur: js einfügen -> not valid html ??

Beitrag lesen

Guten Tag.

Ich habe eine Seite an der ich arbeite bei w3c validieren lassen.
Zu meinem Erstaunen musste ich feststellen, dass die Seite immer dann, wenn ich einen scriptbereich definiere plötzlich nicht mehr als 'Valid HTML 4.01 Transitional' durchgeht.

Hier ein Ausschnitt meines Htmls:

"...
-->
</STYLE>
</HEAD>
<SCRIPT TYPE="text/javascript">
<!--

//-->
</SCRIPT>
<NOSCRIPT></NOSCRIPT>
<BODY>
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">
..."

Ist der Script-Breich falsch einfügt, oder warum handelt es sich dadruch plötzlich nichtmehr um Valid HTML 4.01 Transitional?

Hier noch die Meldung des Validators:

"document type does not allow element "BODY" here
<BODY>
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)."

Vielen Dank im Vorraus,
mfg,
Johannes Neumeier