Question: What attracts planets and celestial items?
Sentence: However, the electromagnetic force attracts electrons and protons to one another, while planets and celestial objects are attracted to each other by gravity.
Answer in sentence: yes