Gender identity develops through a complex interaction of biological, cognitive, social, and environmental factors from a very young age. Children begin showing preferences for gender-typed toys and behaviors between 18 months and 3 years old. Between ages 2 and 4, children progress through stages of gender identity development, gaining the ability to correctly label themselves and others by gender and understand that their gender remains constant. Nurture also plays an important role, as parents influence children's development of gender schemas by encouraging gender-typed behaviors and preferences in toys and activities from a young age.