nthoftype
The `:nth-of-type` pseudo-class in CSS is used to select elements based on their position among siblings of the same type. Unlike the `:nth-child` pseudo-class, `:nth-of-type` only considers elements of the same type (tag name) when determining the position.
The syntax for `:nth-of-type` is as follows:
/ styles /
}
```
Here, `n` can be a number, a keyword, or a formula. The formula is typically of the
1. Select every `<p>` element that is the second `<p>` element of its parent:
}
```
2. Select every `<p>` element that is an odd-numbered `<p>` element of its parent:
}
```
3. Select every `<p>` element that is a multiple of 3 of its parent:
}
```
The `:nth-of-type` pseudo-class is particularly useful for applying styles to specific elements within a group of