However, the electromagnetic force attracts electrons and protons to one another, while planets and celestial objects are attracted to each other by gravity.
What does the electromagnetic force attract to one another?
electrons and protons