what does the skin produce in response to sunlight exposure
Sun tanning Moderate exposure to the sun contributes to the production of melanin and vitamin D by the body, but excessive exposure to ultraviolet rays has negative health effects, including sunburn and increased risk of skin cancer,[1] as well as depressed immune system function and accelerated aging of the skin. Some people tan or sunburn more easily than others. This may be the result of different skin types and natural skin color, and these may be a result of genetics.
Sunlight On Earth, the solar radiation varies with the angle of the sun above the horizon, with longer sunlight duration at high latitudes during summer, varying to no sunlight at all in winter near the pertinent pole. When the direct radiation is not blocked by clouds, it is experienced as sunshine. The warming of the ground (and other objects) depends on the absorption of the electromagnetic radiation in the form of heat.