Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML output form attribute

HTML form attribute

HTML output Tag Reference HTML tag

Example

located outside the form element (but still part of the form):

oninput="x.value=parseInt(a.value)+parseInt(b.value)">0

100

+



Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost no major browser supports the form attribute.


Definition and Usage

The form attribute specifies the one or more forms to which the element belongs.


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.


Syntax

Attribute values

Value Description
form_id Specifies the A space-separated list of ids of the one or more forms to which the element belongs.

HTML output Tag Reference HTML tag