Figure 1.41. The :last-of-type pseudo-class matches the last element of a type
Figure 1.42. Using p:only-of-type to match the only child that’s a paragraph element
Let’slookatanotherexampleofusing:first-of-type,butthistimewithapseudo-
element.Rememberthe::first-letterpseudo-elementfromearlierinthischapter?
Well,asyousaw,itcreatedaninitialcapitalforeveryelementtowhichitwasap-
plied.Howaboutwegoonestepfurther,andlimitthisinitialcapitaltothefirst
paragraphinstead:
Selectors 59