Which component of skin protects against UV light?

A. epidermis
B. sweat glands
C. melanin
D. vitamin D

C. melanin