In astronomy, a metal is any element other than hydrogen or helium. This is because these two elements (and sometimes lithium) are the only ones that form outside stars. In the sky, a spectrometer can see the signs of metals and show the astronomer the metals in a star.