Line spectra are obtained when individual elements are heated using a high-voltage electrical discharge. This heating causes excitation of the element and a subsequent emission of distinct lines of colored light are obtained. Each element has its own unique emission line spectrum; therefore, if any of the tested substances were the same, their spectra would match. However, this is not the case so none of the substances are the same.