Re: [Moderator Action] The HTML-validator error report.

David Öberg wrote:
> 
> I tried to validate this text
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
> <html>
> <head>
>   <title>Form</title>
>   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <body>
> <form action="http://www.htmlhelp.com/">
> <input name="name">
> </form>
> </body>
> </html>
> 
> And it didnt pass. when I changed the DOCTYPE to <!DOCTYPE HTML PUBLIC
> "-//W3C//DTD HTML 4.0 Transitional//EN">, it did pass.
> 
> There must be something wrong with the validator, must it not?

In the strict DTD, the FORM element [1] takes block content
(or script content), while the <input> element is inline content.

  _ Ian


[1] http://www.w3.org/TR/html401/interact/forms.html#edef-FORM

-- 
Ian Jacobs (ij@w3.org)   http://www.w3.org/People/Jacobs
Tel:                     +1 718 260-9447

Received on Friday, 7 June 2002 17:01:56 UTC