How do You Build An Electromagnet?

Electromagnet can be formed by winding a wire over ferromagnetic core such as soft iron. When electricity is passed through coil, it becomes magnet.