Matt Posted November 13, 2005 Share Posted November 13, 2005 I'm re-writing my webpage to conform to XHTML standards, I'm using frames. I've finally finished coding the pages, and am now validating each individual page and frame.This is one of the errors that came up when I tried validating:"Error Line 20 column 5: 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)."Here is the top code for my website:<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /><meta name="GENERATOR" content="Microsoft FrontPage 5.0" /><meta name="ProgId" content="FrontPage.Editor.Document" /><title>Artemis Fowl Confidential: The Number One Artemis Fowl Fan Site!</title><base target="main" /><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="menuscript.js"></script></head><body><img class="cent...Now, what on Earth do I change to be rid of this error? Please help me.Regards,Matt Link to comment Share on other sites More sharing options...
F-Man Posted November 13, 2005 Share Posted November 13, 2005 This is not a frameset document, so use the Strict or Transitional DOCTYPE. Link to comment Share on other sites More sharing options...
Matt Posted November 14, 2005 Author Share Posted November 14, 2005 This is not a frameset document, so use the Strict or Transitional DOCTYPE.<{POST_SNAPBACK}> Thanks an awful lot, F Man. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now