I am trying to create a figure tag that has inside an anchor tag wrapping the image. I was wondering if that structure is legal or not. Here is the code showing how I want it to work.
<figure>
<a href="/my-picture">
<img src="img/picture.jpg" alt="My picture">
</a>
<figcaption>
My picture
</figcaption>
</figure>