Which force keeps the planets from floating off into space?

A. Earth's gravity
B. the Sun's gravity
C. the Moon's gravity
D. Milky Way's gravity