nth-of-type() nth-child()
This is the selector that matches all the nth-child elements, of its parent in a particular type. This is the selector that matches all the nth-child elements, of its parent in all the types.
It takes multiple elements that are used to describe the pattern for element matching. It takes only one element that is used to describe the pattern for element matching.
BY Best Interview Question ON 17 Jan 2021