HTML Attributes

HTML colorspace attribute

Build a form with the HTML form generator

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

NameTypeDescription
colorspaceenumerated: limited-srgb, display-p3Selects 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>
HTML Reference