Any material capable of attracting iron and producing a magnetic field outside itself.
By the end of the 19th century, all known elements and many compounds had been tested for magnetism , and all were found to have some magnetic property. However, only three elements
iron, nickel , and cobalt
exhibit ferromagnetism . See also compass , electromagnet .