You are here: Re: document type does not allow element "HTML" here. « HTML « IT news, forums, messages
Re: document type does not allow element "HTML" here.

Posted by John Hosking on 10/16/07 01:18

Jim Moe wrote:
> On 10/15/07 04:59 pm, bbxrider wrote:
>> 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>
>>
> The <meta...> and <link...> must be in the <head> section.

Although the <head> tag itself (like </head>) is optional, as are the
<html> and </html> tags.

The error message mentioned by the OP comes because at the <meta> tag
the html element (and the head element) is deemed to have started. Then
when the <html> tag is found, it's extraneous, so the error is reported
as in the Subject line.


--
John
Pondering the value of the UIP: http://improve-usenet.org/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация