Hordeolum is the medical term for stye (or sty). A pimple or abscess forms in the upper or lower eyelid to create a stye. A bacterial infection is generally the cause of the stye. The existing bacteria, which lies upon the surface of the eyelid gets traps with dead skin cells inside the crypts along the ridge of the eyelid .