Two types of hydrocarbons – aliphatic and aromatic – when forming bonds with halogen compounds, are called haloalkanes and haloarenes respectively. These halogen ions, due to their strong electronegativity, replace the hydrogen atoms in organic molecules and form such compounds.
The 12th NCERT chemistry PDF also mentions how the halogen atoms attach to the sp3 hybridised carbon in alkyl groups, while for aryl groups, they do so with the sp2 hybridized carbon. Such compounds are of particular importance and used in various ways in our day to day lives.
Click To Zoom Image