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