Melanoma is a type of skin cancer, and skin cancer is the overall category, containing multiple types of cancer.