Hello, I really like the zoom search product.
I'm trying to validate the HTML on my site, and am being told that the search form part is not valid. I am validating to strict HTML 4.0.1. Does anyone have any ideas as to why this might be?
The validator is saying:
^^^
document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
<input type="text" name="zoom_query" size="20">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "
" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
and
end tag for "FORM" which is not finished
</form>
Most likely, You nested tags and closed them in the wrong order. For example
[i]...</p> is not acceptable, as [i] must be closed before
. Acceptable nesting is:
...</p>
Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete
^^^
I've taken the form out of my divs and put it just in my "body" section, which I thought would work, but still the same errors. I haven't changed the code of the form at all.
Any help would be much appreciated.
Thanks, Katie
I'm trying to validate the HTML on my site, and am being told that the search form part is not valid. I am validating to strict HTML 4.0.1. Does anyone have any ideas as to why this might be?
The validator is saying:
^^^
document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
<input type="text" name="zoom_query" size="20">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "
" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
and
end tag for "FORM" which is not finished
</form>
Most likely, You nested tags and closed them in the wrong order. For example
[i]...</p> is not acceptable, as [i] must be closed before
. Acceptable nesting is:
...</p>
Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete
^^^
I've taken the form out of my divs and put it just in my "body" section, which I thought would work, but still the same errors. I haven't changed the code of the form at all.
Any help would be much appreciated.
Thanks, Katie
Comment