Posted by Harlan Messinger on 01/23/08 10:08
Zone wrote:
> Hello,
>
> I have tried to understand why input field is valid outside form tag.
> I seems to work outside form if e.g. input tag is inserted inside div tag.
>
> I tried to read http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
> but didn't find any solution.
>
> Can anyone clearify were input is accepted if it's not inside form?
Besides what Toby said about why it's valid (which is correct) it's also
reasonable if you're using controls to receive user input that is going
to be used on the client side rather than for submitting to a server. An
example would be a client-side measurement or currency converter coded
in Javascript. Functionally speaking there's no need for a form since
nothing is being submitted to the server.
Navigation:
[Reply to this message]
|