With the arrival of the digital era, the digitization of history education resources has become an important means to improve the quality of classroom teaching. Through experimental design and data analysis, this paper explores the application effect of digital history education resources in secondary school history classroom teaching. The study adopted a learning recommendation model based on knowledge graph and conducted a semester-long teaching experiment in Shanghai A Middle School. The experimental results showed that the experimental class using digital resources demonstrated significant advantages in learning motivation, learning achievement and classroom participation. Specifically, the final grades of the experimental class increased by 5 points on average, and the grades were more centrally distributed with lower standard deviation, showing better learning effects and higher learning stability. This paper also analyzes the accuracy of different recommendation algorithms by comparison, proving that the proposed algorithm is superior to other algorithms in terms of recommendation accuracy, with lower MAE and RMSE values, respectively, verifying the feasibility and effectiveness of the application of the model in history education. The study shows that digital history education resources can not only enhance the interactivity of classroom teaching, but also enhance students’ interest in learning and improve their mastery of history knowledge.