Magnets have five properties. Their force of attraction is greater at the poles than in the middle. Similar poles repel. Opposite poles attract. The south pole of a bar magnet suspended by a thread moves toward the north pole. Magnets attract objects made of iron, cobalt and nickel.
Every magnet has two poles: north and south. It is inside these two poles that the magnetic properties are stored. The strength of attraction between magnets depends on the strength of the magnetism found in each pole. This same principle is true for repulsion because magnets with strong poles possess a stronger repulsive force.