Absorption spectra of quasars