I taught one of my students about the nth-child() pseudo-selector, and I asked him: can you select any possible HTML element with the nth-child pseudo-selector? His answer was negative, because you cannot select the root of the node, or rather, the html element.
I myself forgot this, because my answer in the past was yes. Is it possible to use nth-child() to select an html element? If so, how?
I would like to know, therefore, when I accept the final claims when teaching my students, they are truly final and do not lose sight of any possible cornerstone case.
thanks
source share