A theory is developed for the interaction of an electromagnetic field with one-particle quantum-confined states of charge carriers in semiconductor quantum dots. In the context of dipole approximation it is established that the gigantic optical absorption cross sections in the quasi-zero-dimensional systems make it possible to use the systems as efficient absorbing materials. The effects of the resonant interaction of light with such local electron states in presence and in absence of a homogeneous magnetic field are investigated.