Form Control Association Test

To clear the query string: Reload this page

This form is a test for a new feature in HTML5 that associates orphaned form controls with a form element. In this example, the <textarea> element ("Comments") is not nested inside the <form> element, but it's using the "form" attribute to associate itself with the form.

When you submit the form, you'll see all submitted values in the query string in the URL.

In a supporting browser (FF4+, Chrome, Opera 10+) you'll see the URL like this:

?name=&email=&comments=

In a nonsupporting browser (FF3.x, IE) the "comments" value will be missing, like this:

?name=&email=

< Back to the Article