Specificity Quick Test
CSS
Medium
2 views
Problem Description
Make .btn override button styles using specificity.
Output Format
Print the HTML+CSS code in one block.
Constraints
Show both selectors and the final look.
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>
button { background: #eee; color: #222; }
.btn { background: #0b5; color: #fff; }
</style>
</head>
<body>
<button class='btn' type='button'>Join meetcode</button>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!