Enterprise Verified
2

Class Selector Styling

beginner • Write Code
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
Enterprise Operations Suite

Streamline Employee Payroll & Attendance Operations

Eliminate manual spreadsheet errors. Integrate automated attendance tracking, EPF/ESI statutory calculations, and custom GST invoices.

Copied!

AI Learning Assistant

Ready to explain & guide

Hello! I am your MBS Digital AI Tutor. Ask me to explain concepts, review code, or suggest debugging steps.

Quick Starters:
AI Tutor is thinking...