November 2011
Intermediate to advanced
384 pages
13h 23m
English
In HTML 4.01 and earlier, all input elements needed to be within a form element group. In HTML5, it is now possible to store these input elements outside of the form group, provided that you specify a form attribute in the input element to link the two together:
<form ... id='formid'> </form> <input ... name='input1' form='formid'>
The same formid value must be applied to the id attribute on the form element and the form attribute on the input element.
Note that an input element that appears within a form block may also be assigned to a different form using this method. So, why exactly was the external input elements feature added to HTML5? The short answer is obvious:
so that form input elements no ...
Read now
Unlock full access