There are 2 types of ultraviolet radiation, namely, UVA and UVB. The difference is in the wavelengths:

UVA (long wave ultraviolet A) penetrates deep into the dermis, the skin’s thickest layer.

UVB (short wave ultraviolet B) causes harm to the superficial layers of the skin.

UV Radiation and the skin