Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <html> <head> <title>Color Example</title> <style> body { background: darkslategrey; font-family: sans-serif; font-size: 1.3em; } section { padding: 20px; margin: 20px; background-color: cornsilk; border: 6px solid gold; } h1 { color: coral; } p { color: orange; } a:link, a:visited { color: darkorange; } a:hover { color: orangered; } a:active { background: orangered; color: white; } </style> </head> <body> <section> <h1>Basic Color Example</h1> <p>This is a basic example to demonstrate how colors can be applied to a web page using CSS.</p> <p><a href="/css/css_color_codes.cfm">More color codes →</a></p> </section> </body> </html>
Preview