 In the medieval Islamic world, an elementary school was known as a "maktab", which dates back to at least the 10th century.Like madrasahs (which referred to higher education), a "maktab" was often attached to a mosque.In the 16th century, the Sunni Islamic jurist Ibn Hajar al-Haytami discussed "Maktab" schools.