PDA

View Full Version : How can I fix this?


triloco2
12-21-2008, 02:17 PM
Line 352, Column 26: document type does not allow element "style" here.
<style type="text/css">✉

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).

Lynne
12-21-2008, 02:38 PM
validators like your css to be defined in the <head> element, so make sure that is in the head, not the body.

triloco2
12-21-2008, 06:09 PM
validators like your css to be defined in the <head> element, so make sure that is in the head, not the body.

ok,thanks