How is a suntan made?

Can you answer this question?