ANSWER:
This varies for every child. Generally speaking, when boys start to notice beauty, they should be taught segregation and this can be before reaching the age of puberty. A girl must distance herself from the opposite gender by the age of 9 to 10 and start observing the proper hijab.