Cancer of the cervix can be prevented in two ways: preventing initial HPV infection through vaccination and (2) screening for precancerous lesions and providing early treatment to prevent progression to cancer.