Q. Which of the following CSS selectors selects an element that does not have sub-elements?
β
Correct Answer: (A)
:empty
Explanation: The “:empty” selector is used to select elements that contain no children (including text).
:empty {
// CSS property
}