Step 1: Understanding the Concept
Haloarenes are compounds in which a halogen atom is bonded directly to an sp2 hybridised carbon of an aromatic (benzene) ring.
Step 2: Examine the Structures
Option (A) is benzyl halide: X is on a side-chain carbon (sp3).
Option (B) has X on a cyclohexene ring, which is not aromatic.
Option (C) has X on a saturated cyclohexane ring.
Step 3: Identify the haloarene
Option (D) has X directly on the benzene ring, so it is a haloarene.
Final Answer:
Only the structure with X attached directly to the benzene ring is a haloarene.
\[ \boxed{\text{(D) }\text{halogen attached directly to the benzene ring}} \]