HTML Attributes

HTML alpha attribute

Build a form with the HTML form generator

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
alpha

Parameters & Attributes

NameTypeDescription
alphabooleanRequests 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>
HTML Reference