1.

What's the difference between the nth-of-type() and nth-child()?

Answer»
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.


Discussion

No Comment Found