Tanning beds increase skin cancer risk by 75% and cause injuries, so it's best to avoid them before age 35.
Vitamin D is essential for building bones and preventing serious diseases, but tanning is dangerous and should be avoided. Eat vitamin D-rich foods and take vitamin supplements.
Wear UV-protective clothing with a UPF label and loose-fitting clothing made from tightly woven fabrics when out in the sun.