Is HTML5 transparent input color value possible?

Putting any value except HEX (#ffffff) gives a console error. But I was wondering if the user wants color and transparency.

I know that the syntax below will not work. But is there a way to achieve transparent value.

<input type='color' value='transparent'/> 
+8
html5
source share
1 answer

 <div style="background-color:rgba(0, 0, 0, 0.5);"> <div> Text added. </div> </div> 

There is currently no direct transparent background support for HTML5. I would suggest CSS

link here: CSS Background Opacity

-7
source share

All Articles