Reply to Re: document type does not allow element "input" here

Your name:

Reply:


Posted by zach on 12/09/07 08:08

Jonathan N. Little wrote:
> showandbeshown@gmail.com wrote:
>> Hi,
>>
>> I try to validate an xhtml document. I got the following message:
>> Line 52, Column 109: document type does not allow element "input"
>> here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div",
>> "pre", "address", "fieldset", "ins", "del" start-tag.
>>
>> I cannot understand the reason of that because the line 52 DOES NOT
>> contain the element "input". Well, I have this element 2 lines bellow,
>> but it IS included into the block-level element <div>.
>>
>> Can anybody help me?
>>
>> The source can be found here:
>> http://www.showandbeshown.com/create_link.php
>>
>
> Put your hidden input inside the div and your problem will go away.
>

The problem has nothing to do with a div, the problem is you have:

<input type="text" name="searchbox" size="19" maxlength="30" ></input>

That isn't the proper way to close an input element. You need to remove
the </input and but a backslash at the end of the main input element
like this:

<input type="text" name="searchbox" size="19" maxlength="30" />

[Back to original 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

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