Thymeleaf about th:block statement

I’m trying to use th:block to make table more specific to analyze my data..

i was trying

<table>
   <thead>
      <tr>
       <th>something</tr>
       <th>something2</tr>
       <th>something3</tr>
      </tr>
   </thead>
   <tbody>
    <tr>
        <th:block th:if="${not #maps.isEmpty(result)}" th:each="firstEntry : ${result}">
           <th:block th:if="${firstEntryStat.count == 0}">
              <tr>
           </th:block>

           <td th:text="${firstEntry.value}"></td>

           <th:block th:if="${firstEntryStat.count == 0}">
              </tr>
           </th:block>
           
        </th:block>
   </tbody>
</table>

i attempted to make this kind of table

------------------------------------------------------------------
     1       |asdasdasd           | asdasdasd             |
------------------------------------------------------------------
             |
------------------------------------------------------------------
     2       |asdasdasd           | asdasdasd             |
------------------------------------------------------------------
             |safefesf            | thsdrgsdrg            |
------------------------------------------------------------------

but it ends with the error which is

The element type “th:block” must be terminated by the matching end-tag
“</th:block>”

so i tried another way,

 <table>
       <thead>
          <tr>
           <th>something</tr>
           <th>something2</tr>
           <th>something3</tr>
          </tr>
       </thead>
       <tbody>
        <tr>
            <th:block th:if="${not #maps.isEmpty(result)}" th:each="firstEntry : ${result}">
             <tr th:if="${firstEntryStat.count == 0}">

               <td th:text="${firstEntry.value}"></td>

             </tr th:if="${firstEntryStat.count == 0}">
               
            </th:block>
       </tbody>
    </table>

However, it produced the error like

The end-tag for element type “tr” must end with a ‘>’ delimiter.

is there any way to make datatable like the picture above?