ruud habets <kiosk (AT) xs4all (DOT) nl> wrote:
Quote:
document type does not allow element "INPUT" here; missing one of
"P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS"
start-tag
as i found on the net (not at w3c)
strict html requires a <p></p> or another one, as listed above,
around the input tag. |
This particular error message has been admitted to be misleading
(actually, plain wrong) but not fixed yet. (It lists a few elements that
may validly appear as sub-elements of <form>, but it omits several of
them, and many of those listed should normally not be used inside a form,
for semantic reasons.)
But you're on the right track. The Strict DTD has a "stricter" content
model for <form>. You just shouldn't use any markup just because a
validator "requires" that. In particular, don't use <p> markup unless you
really have a _paragraph_. Instead, you may consider using <div>, or
<fieldlist>.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html