One type of vulvar cancer is attributed to the human papillomavirus (HPV), specifically subtypes 16 and 18. The other is age and a family history of melanoma.