|
Posted by Hywel Jenkins on 10/08/05 15:38
In article <BF6DF561.18821%dorayme@optusnet.com.au>,
dorayme@optusnet.com.au says...
> The following markup causes the W3C validator to count 6 errors.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> <head>
>
> <title>A Title</title>
>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
>
> </head>
>
> <body>
>
> <form method="get" action="http://search.atomz.com/search/">
> <input size="20" name="sp-q">
> <input type="submit" value="Search">
> <input type="hidden" name="sp-a" value="sp1002a0e9">
> <input type="hidden" name="sp-p" value="all">
> <input type="hidden" name="sp-f" value="ISO-8859-1">
> </form>
>
> </body>
> </html>
>
> It seems not to matter whether I wrap the form in a div or not,
> style the div or the form, the same errors, to wit:
>
> 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...
>
> Help, anyone please?
Have you tried putting the <p> ... <address> tags *inside* the form?
--
Hywel
http://kibo.org.uk/
[Back to original message]
|