Carbon dioxide is a compound because each molecule contains atoms of two different elements—carbon and oxygen—chemically bonded together. An element contains only one kind of atom, so CO₂ is not an element.
AI-written and checked against the verified answer.