The electronic and optical properties, including band structure, density of states (DOS), absorption rate, refractive index, and dielectric function, of anatase TiO2 codoped with N and first transition elements are investigated using the plane wave p