Cascade Order Wins
CSS
Medium
2 views
Problem Description
Write two .note rules and make the second one win.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use the same selector twice to show cascade.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
<style>
.note { color: #444; }
.note { color: #0b5; font-weight: 600; }
</style>
</head>
<body>
<p class='note'>meetcode tip: practice a little daily.</p>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!