Report Bug
Qus : How do you target the last child of a parent element
Qusआप मूल तत्व के अंतिम बच्चे को कैसे लक्षित करते हैं

A. :nth-child(last)
B. :last-child
C. :only-child
D. :nth-last-child(1)


Solution
B. :last-child



Explanation

To target the last child of a parent element in CSS, you can use the :last-child pseudo-class.




Report Bug