I am puzzled about why I need to include the thymeleaf in both my HTML tags and in the link to my external CSS stylesheet in the head section. If I remove any of it, the stylesheet becomes disconnected from the HTML document. So, what is the necessity of including the thymeleaf components?
<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" th:href="@{style.css}" href="..\css\style.css">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="41232e2e35323533203101746f736f73">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="26444949525552544756661308140814">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<!-- Nice -->
<div id="header" class="header"></div>
<div class="container" >
<div class="row">
<div class="col">
<a href="filmInfo.html"><img class="img-fluid" src="https://www.nfbio.dk/sites/nfbio.dk/files/styles/movie_poster/public/movie-posters/HO00002857_104360.jpg?itok=pRMFGS5R" alt="..."></a></div>
<div class="col">
<a href="filmInfo2.html"><img class="img-fluid" src="https://www.nfbio.dk/sites/nfbio.dk/files/styles/movie_poster/public/media-images/2022-09/Amsterdam_Payoff_Poster_68%2C5x101%2C5_DK_72dpi_0.jpg?itok=yX9_nT_-" alt="..."></a>
Title here</div>
<div class="col">
<a href="filmInfo3.html"><img class="img-fluid" src="https://www.nfbio.dk/sites/nfbio.dk/files/styles/movie_poster/public/movie-posters/HO00002845_104348.jpg?itok=jNJskf23" alt="..."></a>
Title here</div>
</div>
<div class="row">
<div class="col">
<img class="img-fluid" src="https://videnskab.dk/files/article_media/gnaver.png" alt="...">
Title here </div>
<div class="col">
<img class="img-fluid" src="https://videnskab.dk/files/article_media/gnaver.png" alt="...">
Title here</div>
<div class="col">
<img class="img-fluid" src="https://videnskab.dk/files/article_media/gnaver.png" alt="...">
Title here</div>
</div>
<div class="row">
<div class="col">
<img class="img-fluid" src="https://videnskab.dk/files/article_media/gnaver.png" alt="...">
Title here </div>
<div class="col">
<img class="img-fluid" src="https://videnskab.dk/files/article_media/gnaver.png" alt="...">
Title here</div>
<div class="col">
<img class="img-fluid" src="https://videnskab.dk/files/article_media/gnaver.png" alt="...">
Title here</div>
</div>
</div>
<script>
$(function(){
$('#header').load('reuse-header.html');
});
</script>
</body>
</html>