빈 칸 2024. 6. 20. 20:39

 

 

[코드 작성]

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Tourist Spots</title>
    <link rel="stylesheet" type="text/css" href="/css/styles.css">
</head>
<body>
    <h1>Tourist Spots</h1>
    <ul>
        <li th:each="spot : ${touristSpots}">
            <span th:text="${spot.name}">Tourist Spot Name</span>: 
            <span th:text="${spot.description}">Description</span>
        </li>
    </ul>
</body>
</html>