I have a simple gallery where each image leads to a new page with its description. It turns out that the page layout for the descriptions is the same, just changing the content. How do I make only a few fields on this page change based on the items you previously clicked on the gallery page?
<html>
<head>
<title>Galeria</title>
<link rel ="stylesheet" href= "css/galeria.css">
</head>
<body>
<div class="gallery">
<a target="_self" href="desc1.html">
<img src="img/imagem1.jpg" alt="Imagem 1" width="200" height="200">
</a>
<div class="desc">Imagem 1</div>
</div>
<div class="gallery">
<a target="_self" href="desc2.html">
<img src="img/imagem2.jpg" alt="Imagem 2" width="200" height="200">
</a>
<div class="desc">Imagem 2</div>
</div>
<div class="gallery">
<a target="_self" href="desc3.html">
<img src="img/imagem3.jpg" alt="Imagem 3" width="200" height="200">
</a>
<div class="desc">Imagem 3</div>
</div>
<div class="gallery">
<a target="_self" href="desc4.html">
<img src="img/imagem4.jpg" alt="Imagem 4" width="200" height="200">
</a>
<div class="desc">Imagem 4</div>
</div>
</body>
</html>