469,964 Members | 1,735 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

HTML error helppp!!!!!!

Hi all, I am trying to validate my first web site and most of the common errors that i am getting are the following!!! I am sure you can help me thanks in advance.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"



<title>Orchid Care </title>
<meta http-equiv="content-Type"
Content="text/html; charset=utf-8">
<link href="..\css\style1.css.html" rel="stylesheet" type="text/css">

<div id="care">

<h3> Orchid Care </h3>


<center><h4><i><b>Orchid Pests and Diseases</b></i></h4></center>
<center><a href=".\care_pages\control_approaches.html">CONTRO L APPROACHES</a></center>
<center><a href=".\care_pages\physical_factors.html">PHYSICAL FACTORS</a></center>
<center><a href=".\care_pages\insects.html">INSECTS</a></center>
<center><a href=".\care_pages\diseases.html">DISEASES</a></center>

</div><!.. end of Care div ..>


The errors are
Line 13, 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).

Line 35, Column 6: end tag for "HTML" which is not finished.
</html> ✉
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 (ul, ol, dl) require list items (li, or dt, dd), and so on.
Jan 26 '08 #1
1 1313
428 256MB
A page using the frameset dtd does not have a body element- replace it with <frameset>, or use another dtd that is not expecting a frameset.
Jan 26 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by news | last post: by
6 posts views Thread by Keiron Waites | last post: by
2 posts views Thread by Kenneth Keeley | last post: by
4 posts views Thread by Larry Tate | last post: by
6 posts views Thread by John Lau | last post: by
2 posts views Thread by Paul | last post: by
1 post views Thread by JumpingOffPlace | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.