|
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" />
Navigation:
[Reply to this message]
|