Where did christian education take place during the middle ages?

in monasterys nuns and monks tought the children mostly about god but they could read and write