|
Posted by Jukka K. Korpela on 10/08/05 15:32
dorayme <dorayme@optusnet.com.au> wrote:
> The following markup causes the W3C validator to count 6 errors.
That's because it has six reportable markup errors.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
In future, please post a URL, not a copy or extract of code.
If you don't understand why, you have a particular reason to do so.
> Error Line 14, column 28: document type does not allow element
> "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5",
> "H6", "PRE", "DIV", "ADDRESS" start-tag .
>
> <input size="20" name="sp-q">
>
> and so on for each input...
Did you check what the document type you use has as the content model of
FORM?
The simple solution is to wrap everything inside the form in a DIV element
(<form ...><div>...</div></form>).
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
[Back to original message]
|