Editor
Download
Open
Auto Run
<!DOCTYPE html> <html> <head> <title>CSS :root Selector</title> <style type="text/css"> :root { background: #ff0000; } div { width: 400px; height: 130px; border: 1px solid yellow; } </style> </head> <body> <h1>This is a heading</h1> </body> </html>
Preview