Home
HTML
HTML RGB Colors
Example 7: HTML RGB Colors
Run ❯❯
<!DOCTYPE html> <html> <head> <title>RGBA Color Example</title> </head> <body> <h1 style="color:rgba(255, 0, 0,1);">The heading color is set to red by RGBA value.</h1> <p style="background-color:rgba(0, 0, 255,0.2);">Background Color of this paragrah is set with rgb value, rgba(0, 0, 255,0.2). Red value is set to 0. Green is set to 0 and Blue is set 255. Transparency is set 0.2.</p> </body> </html>