You are here: Re: xhtml and input tag outside form « HTML « IT news, forums, messages
Re: xhtml and input tag outside form

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация