Magnetism is the name of an invisible push or pull that works between some materials, especially iron and steel.
When things have strong magnetism we call them magnets.
The size and shape of a magnet doesn't change the way it works. Long magnet strips, barrel-shaped magnets and horseshoe-shaped magnets all work the same way.