1. A display device comprising:a light-emitting element provided on a substrate;
a layer including a first refractive index, the layer is provided over the light-emitting element;
a resin member provided over the light-emitting element and the layer; and
a first light-shielding layer provided over the resin member,
wherein the resin member has a planar light output surface and has a second refractive index which is greater than the first refractive index, and
wherein the first light-shielding layer has a first opening and the first opening faces the light-emitting element.