Modern education of women began in earnest during the Meiji era's modernization campaign. The first schools for women began during this time, though education topics were highly gendered, with women learning arts of the samurai class, such as tea ceremonies and flower arrangement. The 1871 education code established that students should be educated "without any distinction of class or sex". Nonetheless, after 1891 students were typically segregated after third grade, and many girls did not extend their educations past middle school.
