You're quite right. I can't think how I managed to avoid finding that out. I shall amend the article accordingly. Thank you.
It is true that shallow water corals do depend on sunlight because they carry endosymbionts called
zooxanthellae. These are photosynthetic flaggelated protozoans that provide the host with energy (e.g. glucose). However, corals are in the phylum Cnideria which also includes jellyfish, hydrozoa, and sea anemones. They are capable of producing energy of their own, and that is exactly what deep sea corals do by feeding on zooplankton and small invertebrates. Like jellyfish and hydrozoa, they have stinging nematocysts that they use to stun their prey.
It would be accurate to say that specific species of coral can only live within the daylit portion of the ocean due to their dependence on photosynthesis.