Edit This Code:
See Result »
<!DOCTYPE html> <html> <body> <h2 style="background-color:rgb(255,0,0)"> Background-color set by using rgb(255,0,0) </h2> <h2 style="background-color:rgb(0,255,0)"> Background-color set by using rgb(0,255,0) </h2> <h2 style="background-color:rgb(0,0,255)"> Background-color set by using rgb(0,0,255) </h2> <h2 style="background-color:rgb(255,255,0)"> Background-color set by using rgb(255,255,0) </h2> <h2 style="background-color:rgb(255,0,255)"> Background-color set by using rgb(255,0,255) </h2> <h2 style="background-color:rgb(0,255,255)"> Background-color set by using rgb(0,255,255) </h2> </body> <!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml_colorrgb by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 Mar 2016 11:03:32 GMT --> </html>
Result: