We present calculations of the optical response of the DNA bases and base pairs both in their normal and tautomeric forms in the gas phase, using time-dependent density functional theory (TDDFT). These calculations are performed in real time within the adiabatic approximation with a basis of local orbitals. Our results for the individual bases are in good agreement with experiment and computationally more demanding calculations of chemical accuracy. The optical response of base pairs indicates that the differences between normal and tautomeric forms in certain cases are significant enough to provide a means of identification.