Check out example codes for "how to use thymeleaf in html". It will help you in understanding the concepts better.
Code Example 1
// Add xmlns:th="http://www.thymeleaf.org" into the html opening tag like
<html lang="en" xmlns:th="http://www.thymeleaf.org">
Learn ReactJs, React Native from akashmittal.com