Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

h1, h2, h3 {
color: navy;
}
What is the comma doing in this selector?
A. Adding comments
B. Separating multiple selectors
C. Creating a list
D. No meaning
Direction: Choose the correct option

Q2.

What is the benefit of using group selectors?
A. Increases specificity
B. Better colors
C. Faster loading
D. Reduces code repetition
Direction: Choose the correct option

Q3.

.btn, button, input[type=submit] {
border-radius: 4px;
}
What elements does this style affect?
A. All specified buttons and button-like elements
B. Only input
C. Only .btn
D. Only button
Direction: Choose the correct option

Q4.

Can you mix different types of selectors in a group selector?
A. No, same type only
B. Only elements
C. Only classes
D. Yes, combine any selectors
Direction: Choose the correct option

Q5.

.header,
.footer {
background: #333;
color: white;
}
What is the advantage of writing this way?
A. Only header gets styles
B. Both header and footer get same styles without duplication
C. No advantage
D. Only footer gets styles