element: --- ## Definition and Usage The `form` attribute returns a"> element: --- ## Definition and Usage The `form` attribute returns a" />
Easy Tutorial
❮ Prop Style Liststyleimage Prop Style Borderbottomstyle ❯

Input Color form Attribute

Input Color Object

Example

Returns the form id containing the <input type="color"> element:


Definition and Usage

The form attribute returns a reference to the form that contains the color picker.

It returns the form object on success.

Note: This attribute is read-only.


Browser Support

All major browsers support the form attribute.

Note: The <input type="color"> element is not supported in Internet Explorer and Safari.


Syntax

Technical Details

| Return Value: | A reference to the form element containing the color picker. Returns null if the color picker is not within a form. | | --- | --- |


Related Articles

HTML Reference: HTML <form> Tag


❮ Prop Style Liststyleimage Prop Style Borderbottomstyle ❯