Can anyone tell me why the HTML specification does not restrict form
elements from appearing outside of the form tag?
HTML 4.01 section 17.2.1: The elements used to create controls
generally appear inside a FORM element, but may also appear outside of
a FORM element declaration when
Mathew Robertson wrote:
Another related question to ask... Why is putting a hidden input field, as
the first child of a form element, disallowed?
Because it is an %inline element.
The child element(s) of a form must be %block.
http://www.w3.org/TR/html4/interact/forms.html#h-17.3
--
David
2009/7/15 Mathew Robertson mat...@optusnet.com.au:
Another related question to ask... Why is putting a hidden input field, as
the first child of a form element, disallowed?
The HTML 4.01 DTD specifies that only block-level elements or script
elements may appear as the immediate children of
@webstandardsgroup.org
Subject: Re: Re: [WSG] Form question
Mathew Robertson wrote:
Another related question to ask... Why is putting a hidden input
field, as
the first child of a form element, disallowed?
Because it is an %inline element.
The child element(s) of a form must be %block.
http
@webstandardsgroup.org
Subject: Re: Re: [WSG] Form question
Can anyone tell me why the HTML specification does not restrict form
elements from appearing outside of the form tag?
HTML 4.01 section 17.2.1: The elements used to create controls
generally appear inside a FORM element, but may
@webstandardsgroup.org
Subject: Re: Re: [WSG] Form question
2009/7/15 Mathew Robertson mat...@optusnet.com.au:
Another related question to ask... Why is putting a hidden input
field, as the first child of a form element, disallowed?
The HTML 4.01 DTD specifies that only block-level elements