What are the main causes of myopia in children, and how can they be prevented?

What are the primary factors that contribute to the development of myopia in children, including genetic and environmental influences, and what preventive measures can parents take to reduce the risk or slow its progression?