i. In aryl halides, halogens are moderately deactivating. Because of their strong -I effect, overall electron density on the benzene ring decreases, which makes the electrophilic substitution difficult.
ii. However, halogens are ortho and para directing. This can be explained by considering resonance structures.
iii. e.g. Chlorobenzene has the following resonating structures:

iv. Due to resonance, the electron density on ortho and para positions is greater than meta positions and hence, -Cl is ortho and para directing.