Menu
Hello.
Why does the following code not work?
[code]
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″/>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>hey I am a title</title>
<style>
::root{
–mycolor1: #a0a000;
–mycolor2: #ff8800;
}
.t1 {font-color: var(–mycolor1);}
.t2 {font-color: var(–mycolor2);}
div {font-size: 3em;}
</style>
</head>
<body>
<!– this program illustrates css variables –>
<div class=t1>I am a cool text.</div>
<div class=t2>I am a cool text.</div>
</body>
</html>
Thank you.