Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

How is an ID selector written in CSS?
A. .idname
B. *idname
C. idname
D. #idname
Direction: Choose the correct option

Q2.

What is a key characteristic of ID selectors?
A. IDs are deprecated
B. Each ID should be unique on a page
C. IDs can be reused
D. IDs are for classes only
Direction: Choose the correct option

Q3.

#header {
background: black;
color: white;
}
How many elements can this selector affect on a valid HTML page?
A. Only one element
B. Multiple elements
C. All header elements
D. No elements
Direction: Choose the correct option

Q4.

What is the specificity weight of an ID selector compared to a class selector?
A. Higher than class
B. Lower than class
C. No specificity
D. Equal to class
Direction: Choose the correct option

Q5.

Content
Which CSS correctly selects this element?
A. #sidebar { }
B. sidebar { }
C. .sidebar { }
D. div# { }