Haloalkanes consist of an alkyl group bonded to a halogen atom, while haloarenes have a halogen atom directly bonded to an aromatic ring. The structure and bonding in these compounds differ, leading to variations in reactivity and applications.