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