What are effective ways to avoid getting sunburned during the summer months?

What are effective ways to avoid getting sunburned during the summer months?