2
Class Selector Styling
beginner
•
Write Code
Completed
Write a CSS rule that sets elements with the class "btn-primary" to have a background color of `#04AA6D`:
Helpful Hint:
Remember class selectors in CSS begin with a period (.)
Expected Solution:
.btn-primary { background-color: #04AA6D; }
Explanation: Classes are targeted with `.className { property: value; }`.
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php