- From: David Dorward <david@dorward.me.uk>
- Date: Mon, 20 Nov 2006 09:52:53 +0000
- To: Loc <chaoticsoftware.bot@gmail.com>
- Cc: www-validator@w3.org
On Sat, Nov 18, 2006 at 10:22:24PM +0100, Loc wrote: > <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> > Username: <input type="text" name="user" /> > Password: <input type="password" name="pass" /> > The w3 validator says that these form elements are not allowed in a div. Are you sure? I'd expect it to claim that the form controls (not elements, there is only one form element in that code) are not allowed "here", where "here" is "as children of a form element". Form elements may have only block elements (such as fieldset or div) as children. These elements may then contain the inline input elements. (BTW, you should use the <label> element to markup the labels for your form controls.) -- David Dorward http://dorward.me.uk
Received on Monday, 20 November 2006 09:53:13 UTC