Home
HTML
HTML HEX Colors
Example 2: HTML HEX Colors
Run ❯❯
<!DOCTYPE html> <html> <head> <title>HEX & RGB Color Example</title> </head> <body> <h1 style="color:rgb(0,255,0);">This is a green color heading.</h1> <p style="color:#00FF00;">This is a green-color paragraph. Notice that the color of the heading is set with an RGB value and color of the paragraph is set with a hexadecimal value.</p> </body> </html>