A diaphragm is a soft rubber cap that can be placed into the vagina and over the cervix before having sex to prevent sperm from traveling into the uterus. Spermicidal jelly is placed into the diaphragm to help prevent pregnancy. A diaphragm must be fitted by a physician to make sure that it is completely blocking the opening of the cervix.