HTML Attributes
HTML colorspace attribute
Selects the color-space mode for a color input where supported. Use a conventional sRGB hex color when broad interoperability matters. Applicable elements include: <input>. Check each element’s value rules.
Formal Syntax & Structure
html syntaxhtml
colorspace="display-p3"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| colorspace | enumerated: limited-srgb, display-p3 | Selects the color-space mode for a color input where supported. Use a conventional sRGB hex color when broad interoperability matters. |
Working Example
Example Snippethtml
<label> Color <input type="color" colorspace="display-p3" value="#336699"></label>