Re: document type does not allow element "HTML" here.
- From: Sherman Pendley <spamtrap@xxxxxxxxxxx>
- Date: Mon, 15 Oct 2007 23:43:25 -0400
"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
.
- References:
- document type does not allow element "HTML" here.
- From: bbxrider
- document type does not allow element "HTML" here.
- Prev by Date: Re: Removing obsolete pages from a site
- Next by Date: Re: Removing obsolete pages from a site
- Previous by thread: Re: document type does not allow element "HTML" here.
- Next by thread: can't focus form with script
- Index(es):
Relevant Pages
|