Jump to content

Can someone explain these?


Mesden

Recommended Posts

I keep getting these for this website: http://www.sc2x.net Line 2, Column 45: end tag for "html" which is not finished<html xmlns="http://www.w3.org/1999/xhtml" />✉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 require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on. Line 2, Column 45: end tag for "html" which is not finished<html xmlns="http://www.w3.org/1999/xhtml" />✉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 require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on. Line 3, Column 6: document type does not allow element "head" here<head>✉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). Line 18, Column 6: 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). Line 298, Column 7: end tag for element "html" which is not open</html>✉The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.If this error occurred in a script section of your document, you should probably read this FAQ entry. Line 298, Column 8: end tag for "body" omitted, but OMITTAG NO was specified</html>✉You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". Line 18, Column 1: start tag was here<body> Line 3: Extra content at the end of the document<head>

Link to comment
Share on other sites

First things first - your code ends with

< />

It should instead end with

</body></html>

Fix that, and let us then see how many of those errors will go away.

Link to comment
Share on other sites

Now I get these: Line 2, Column 45: end tag for "html" which is not finished<html xmlns="http://www.w3.org/1999/xhtml" />✉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 require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on. Line 2, Column 45: end tag for "html" which is not finished<html xmlns="http://www.w3.org/1999/xhtml" />✉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 require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on. Line 3, Column 6: document type does not allow element "head" here<head>✉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). Line 18, Column 6: 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). Line 19, Column 6: 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). Line 300, Column 7: end tag for element "html" which is not open</html>✉The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.If this error occurred in a script section of your document, you should probably read this FAQ entry. Line 300, Column 8: end tag for "body" omitted, but OMITTAG NO was specified</html>✉You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". Line 18, Column 1: start tag was here<body> Line 3: Extra content at the end of the document<head>

Link to comment
Share on other sites

Strange... I though the validator was seeing things, but it appears I'm the one who's seeing things... your code starts with

<html xmlns="http://www.w3.org/1999/xhtml" />

but it should instead start with

<html xmlns="http://www.w3.org/1999/xhtml">

(the first time I looked at it, it was as if you had it right)

Link to comment
Share on other sites

Line 19, Column 6: 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). Line 300, Column 7: end tag for "body" omitted, but OMITTAG NO was specified</html>✉You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". Line 18, Column 1: start tag was here<body> Line 300, Column 7: Opening and ending tag mismatch: body line 18 and html</html>✉ Line 300, Column 7: Premature end of data in tag html line 2</html>

Link to comment
Share on other sites

Are you fixing one error, and make new ones as you go?!? You have

<body><body>

but it should be

<body>

(and this time around, I really think you didn't had it before...)

Link to comment
Share on other sites

Are you fixing one error, and make new ones as you go?!? You have
<body><body>

but it should be

<body>

(and this time around, I really think you didn't had it before...)

No I'm not intentionally adding things, I must have done it without realizing before I posted here. Just trying to remove what the Validator is picking out.EDIT: That extra body tag was actually in a seperate file as part of a PHP include. It's been removed.
Link to comment
Share on other sites

No I'm not intentionally adding things, I must have done it without realizing before I posted here. Just trying to remove what the Validator is picking out.EDIT: That extra body tag was actually in a seperate file as part of a PHP include. It's been removed.
Fixed and Validated. Thanks! :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...