how does a magnet attract a paperclip ?

Since this is not my area of expertise, I searched Google under the key words "magnetism" to get these possible sources:

In the future, you can find the information you desire more quickly, if you use appropriate key words to do your own search.

I hope this helps. Thanks for asking.