th:text is a Thymeleaf namespace attribute that replaces an element’s body with an expression’s value. The ${} expression reads a request attribute, such as message, while the surrounding HTML provides a placeholder during template design. section 2.1.3
Render a message
Use <p th:text="${message}">placeholder message</p>. When Thymeleaf renders the template, the paragraph body becomes the value of the message request attribute. section 2.1.3
<h3>Designate your wrap:</h3>
<div th:each="ingredient : ${wrap}">
<input th:field="*{ingredients}" type="checkbox"
th:value="${ingredient.id}"/>
<span th:text="${ingredient.name}">INGREDIENT</span><br/>
</div>
In a taco-design form, th:text replaces the INGREDIENT placeholder with each ingredient’s name while th:each renders the surrounding element for every item. section 2.1.3
