A plurality of covers each of which has a light transmitting section are attached
to a substrate on which is formed a plurality of optical elements each of which
has an optical section, and each of the optical sections is sealed by each of the
covers. Then, the substrate is cut into individual ones of the optical elements.