Can you decode the ransom note by changing the CSS, without changing the HTML?
- Can you change the ransom note so that it uses your favorite colors?
- Without changing the HTML, can you make the ransom note appear more like a normal sentence?
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>02.1 CSS Selectors Ransom Note </title> | |
</head> | |
<body> | |
<h1>Ransom Note</h1> | |
<ul> | |
<li>I may</li> | |
<li><h6>have</h6><h1>hid</h1><h4>den</h4><h3>the</h3>pri</li> | |
<li><h5>ze</h5><h2>un</h2>der</li> | |
<li><h2>neathe</h2><h3><h1>the</h1></h3><h4>tab</h4></li> | |
<li><h5>le</h5><h4>ne</h4><h6>ar</h6></li> | |
<li><h3>the</h3><h5>classroom</h5><h1>door</h1></li> | |
</ul> | |
</body> | |
</html> |
li { | |
color: white; | |
} | |
h1{ | |
color: white; | |
} | |
h2 { | |
color: white; | |
} | |
h3 { | |
color: red; | |
background-color: red; | |
} | |
h4 { | |
background-color: yellow; | |
color: yellow; | |
} | |
h5 { | |
color: white; | |
} | |
h6 { | |
color: blue; | |
background-color: blue; | |
} |