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"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<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">
</head>
<body>
<div id="care">
<h3> Orchid Care </h3>
<br>
<br>
<center><h4><i><b>Orchid Pests and Diseases</b></i></h4></center>
<br>
<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 ..>
</body>
</html>
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.