Easy Tutorial
❮ Tag Time Att Th Charoff ❯

HTML <input> form Attribute

HTML <input> Tag

Example

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


Browser Support

Almost all major browsers support the form attribute except for Internet Explorer.


Definition and Usage

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


Differences Between HTML 4.01 and HTML5

The form attribute is new in HTML5.


Syntax

Attribute Values

Value Description
form_id Specifies a space-separated list of ids of one or more forms to which the <input> element belongs.
❮ Tag Time Att Th Charoff ❯