In his theory of the photoelectric effect ( for which he won the Nobel prize for physics ) and inspired by the idea of Max Planck 's " quanta " , he posited that light could exist in discrete particle - like quantities as well , which later came to be known as photons .