Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> #myDIV { color: blue; border: 10px solid currentcolor; } </style> </head> <body> <h2>The currentcolor Keyword</h2> <p>The currentcolor keyword refers to the value of the color property of an element.</p> <p>The border color of the following div element will be blue, because the text color of the div element is blue:</p> <div id="myDIV"> This div element has a blue text color and a blue border. </div> </body> </html>