After Thymeleaf has been enabled by adding the namespace, directives can be used to add dynamic content. This will be achieved by using the th prefix. For example, assume that you have added an attribute named message to the model:
<h1 th:text="${message}">This will be replaced!</h1>
Instead of the text This will be replaced!, the content of the model attribute named message will be shown.
To access a model attribute, ${...} is used to reference an attribute from the model.