Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
<!DOCTYPE html> <html> <head><title>HTML Colors</title></head> <body style="padding: 20px; font-family: Arial;"> <h2 style="color: #6366f1;">Indigo Heading</h2> <p style="color: rgb(220, 38, 38);">Red paragraph using RGB</p> <p style="background-color: #fef9c3; padding: 10px;">Yellow background</p> <p style="color: rgba(0,0,0,0.4);">Semi-transparent grey text</p> </body> </html>
Result
Open