The replacement of hydrogen atom in a hydrocarbon, aliphatic or aromatic, by halogen atom(s) results in the formation of alkyl halide (haloalkane) or aryl halide (haloarene). Haloalkanes contain halogen atom(s) attached to the sp3-hybridised carbon atom of an alkyl group. The C−X bond in the haloalkanes is polar.