// Add xmlns:th="http://www.thymeleaf.org" into the html opening tag like <html lang="en" xmlns:th="http://www.thymeleaf.org">