Den halben Nachmittag habe ich jetzt mit Imageflow eine kleine Fotogalerie gebastelt. Als ich fertig war, musste ich feststellen, dass die Seite nun nicht valide ist und folgende Fehlermeldungen auftreten:
# Error Line 59, Column 123: document type does not allow element "link" here
…"
http://www.meine-domain.de/modules/imageflow/imageflow.css" media="screen" />
✉
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 61, Column 126: document type does not allow element "link" here
…design.de/modules/imageflow/css/lightbox.css" type="text/css" media="screen" />
✉
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).
D.h. im body stehen:
<link rel="stylesheet" href="http://www.meine-domain.de/modules/imageflow/css/lightbox.css" type="text/css" media="screen" />
und
<link rel="stylesheet" href=""http://www.meine-domain.de/modules/imageflow/imageflow.css" media="screen" />
obwohl sie eigentlich in den head gehören. Wie bekomme ich sie aus dem body raus?