Check out example codes for "select third element of an id css". It will help you in understanding the concepts better.

Code Example 1

p:nth-of-type(2) {
   background: red;
}

Code Example 2

p:nth-of-type(odd)
 {

   background: red;

 }

Code Example 3

dl#id dd:nth-of-type(3)

Learn ReactJs, React Native from akashmittal.com