472,338 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,338 software developers and data experts.

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"
"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.
Jan 26 '08 #1
1 1382
mrhoo
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

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

Similar topics

4
by: news | last post by:
Saw an example of code recently that used this: echo <<<HTML $error $x INVALID DOMAINS<DIV align="center">$display</DIV> HTML; I would have...
6
by: Keiron Waites | last post by:
Please see the problem in action here: http://www.leadbullet.biz/contact.php If you mouse over the fields, you will see that text is shown on the...
2
by: Kenneth Keeley | last post by:
Hi I have created a Web.config file with theses settings: <customErrors mode="RemoteOnly" defaultRedirect="/errorpages/generic.aspx"> <error...
4
by: Larry Tate | last post by:
I am wanting to get those cool html error pages that ms produces when I hit an error in asp.net. For instance, when I get a compilation error I get...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article...
2
by: Paul | last post by:
Hi I downloaded some free eworld.ui .NET controls, added the control to the toolbox and then added the reference to the dll. The problem is that in...
1
by: JumpingOffPlace | last post by:
Hi, I'm hoping that the wealth of knowledge here can stop me from spinning my wheels on this syntax error for hours. :) Below is the code, and...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and...
2
by: raccoon2 | last post by:
Hello Below is the code for a clients site, I have tested it for validation on the WC3 website, but I get this one error message. Line 276,...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.