electromagnet 2.JPG
When you put iron filings near a magnet, the magnet attracts them because iron has magnetic properties.

https://upload.wikimedia.org/wikipedia/commons/9/93/A-1_horseshoe-magnet-red-silver-iron-filings-AHD.jpg
https://upload.wikimedia.org/wikipedia/commons/9/93/A-1_horseshoe-magnet-red-silver-iron-filings-AHD.jpg
https://upload.wikimedia.org/wikipedia/commons/f/fb/Magnetic_field_of_bar_magnets_attracting.png
https://upload.wikimedia.org/wikipedia/commons/f/fb/Magnetic_field_of_bar_magnets_attracting.png

File:A-1 horseshoe-magnet-red-silver-iron-filings-AHD.jpg By Alexander Wilmer Duff [Public domain], via Wikimedia Commons
By Oguraclutch (Own work) CC-BY-SA-3.0
(http://creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons



electromagnet 3.JPG