Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumCSSattribute and nth-childSingle-choice MCQ

What is the difference between li:nth-child(2) and li:nth-of-type(2) inside a parent that contains mixed element types?

<div> <p>A</p> <li>B</li> <li>C</li> </div>