3 ms·
The description of :nth-child is misleading here. It would only do that if the first two elements in every DIV were P elements. A more accurate description woul
by chc 13y ago
The description of :nth-child is misleading here. It would only do that if the first two elements in every DIV were P elements. A more accurate description would be "Selects the second element in each DIV if it is a P." The description given there sounds more like :nth-of-type.