Electrophile attack where the electron density high.which shows +M or +I effects are ortho/para directing because they increase electron density at ortho and para positions.
The following groups are meta directing groups.
The following groups can acts as both ortho/para directing and meta directing groups due to the presence of pi bond and lone pair of electrons on the nitrogen attached aromatic ring.
Hence, totally 5 groups can acts as ortho/para directing groups among the nine groups.