A visor (also spelled vizor) is a surface that protects the eyes, such as shading them from the sun or other bright light or protecting them from objects.
Nowadays many visors are transparent, but before strong transparent substances such as polycarbonate were invented, visors were opaque like a mask.