“Most skin cancers are caused by too much exposure to ultraviolet (UV) rays. Most of this exposure comes from the sun, but some can come from man-made sources, such as indoor tanning beds and sun lamps. People who get a lot of exposure to UV rays are at greater risk for skin cancer.
The main types of UV rays that can affect your skin include UVA rays and UVB rays. UVB rays have more energy and are a more potent cause of at least some skin cancers, but both UVA and UVB rays can damage skin and cause skin cancer. There are no safe UV rays”
American Cancer Society (https://www.cancer.org/cancer/risk-prevention/sun-and-uv/uv-protection.html)