The eye works much like a camera; its primary function is to focus light. Light rays are bent or "refracted" to meet at a single point through the cornea, the clear window at the front of the eye that provides most of the focusing power. Light then travels through the lens, where it is fine-tuned to focus properly on the retina, the nerve layer that lines the back of the eye and connects to the brain. The retina acts like the film in the camera, and clear vision is achieved only if light from an object is precisely focused onto it. If the light focuses either in front or behind the retina, the image you see is blurred. A refractive error means that the shape of the eye structure does not properly bend the light for focusing.
Having 20/20 vision means seeing at 20 feet what a normal person sees at 20 feet. However, if vision is measured at 20/40, it means a person has to walk up to 20 feet to see the same size letter that someone with 20/20 vision could see at 40 feet. People whose best-corrected vision visual acuity (what they see using glasses or contact lenses) is less than 20/200 in the better eye are considered legally blind, even though they still have enough vision to get around.