Answer:
The poles of all magnets are north and south. Poles that are opposite each other attract each other, while poles that are the same repel each other. When you rub a piece of iron against a magnet, the atoms' north-seeking poles align in the same direction. A magnetic field is created by the force generated by the aligned atoms.
Gravity is an unseen force that attracts items to one other. As a result, the closer two objects are, the stronger their gravitational force is. The mass of the Earth contributes to its gravitational pull. All of its mass exerts a cumulative gravitational pull on all of your body's mass.
Hope this helps!