In this case, there is just the header image, nothing else referring to it. There are other image variations on the site, with caption (using figcaption then), single image with floating text, two images next to each (with or without caption), divider graphics ect.
I don't like div and p as image containers any more.
Testing it with VSC, both ways work, i.e., both with and without additionally "width: 100%" for figure seem to do their responsive job properly.
But hey, there are a lot of smartphones and tablets, a lot of browsers, screenreaders and other accessibility devices.
Therefore I'd like to have a clean code, which supports semantic and accessibility. And which I may use as a basis for similar image usings.
I know about usually having several ways to achieve something in CSS, but I'm just a hobby coder and therefore I really like to stick to this simple sort of code, which I understand.
@lucy24:
The image is a link, too. Like many header images it links to the homepage, but there is no real further content in figure.
The HTML is nothing fancy I guess:
<body>
<div class="big-container">
<header>
<figure class="header2"><a class="" href="https://www.homepage.de" title=""><img class="header1" src="..." width="800" height="250" alt=""></a>
</figure>
</header>
...