Metals such as iron, nickel and cobalt are attracted to magnets.