Re: document type does not allow element "HTML" here.



"bbxrider" <bxtrap01@xxxxxxxxxxxx> writes:

when validating my page i get the error in the subject line
there is a total of 3 errors for the page
i get 2 more errors at the end
"head not finished but doc ended" and "html not finished but doc ended"
i'm thinking these are the result of the first error

here is the page start,
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<html>
<link href="style.css" rel="stylesheet" type="text/css">
<head>
<title>stockton beautiful house for sale, lincoln schools 3/2, all new
kitchen, bath, floors, windows</title>
</head>

<body>
.............................................
</body>
</html>

is this enough info to see what is wrong here?

A few comments:

The head element does not belong inside of the body element, it goes above it.

Meta elements belong inside the head element.

If you want to learn HTML, then learn HTML. Buy a book, read a tutorial, take
a class - whatever works for you. What *won't* work is just making stuff up
and hoping browsers somehow manage to cope with it.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
.



Relevant Pages

  • Re: Understanding simplest HTML page
    ... > I have been trying to get a better understanding of simple HTML, ... In many html DTDs the only tags actually required are ... The first thing in a document that cannot be a head element is ... So the validator at least is making an assumption about what ...
    (comp.infosystems.www.authoring.html)
  • Re: Regex to get the
    ... FFMG wrote: ... In HTML, the start and end tags for the ... document is considered to have a head element containing one TITLE and ...
    (comp.lang.php)
  • RE: [wwwsearch-general] (no subject)
    ... The html is listed below. ... only the head element is read. ... You can perform the refresh manually, or modify the HTML and call .set_response, or replace the HTTPEquivProcessor with your own. ...
    (comp.lang.python)