HTML Attributes
HTML alpha attribute
Requests alpha-channel support in a color input. This is a newer feature; do not assume every picker or browser handles transparency. Applicable elements include: <input>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off.
Formal Syntax & Structure
html syntaxhtml
alphaParameters & Attributes
| Name | Type | Description |
|---|---|---|
| alpha | boolean | Requests alpha-channel support in a color input. This is a newer feature; do not assume every picker or browser handles transparency. |
Working Example
Example Snippethtml
<label> Overlay <input type="color" alpha value="#336699"></label>