学堂 was the standard word for 'school' in late Qing Dynasty and early Republican China, when the country was modernizing its education system. After 1912,
学校 (xuéxiào) gradually replaced it. Today
学堂 sounds archaic and is mainly used in historical contexts or as a nostalgic brand name.