That a standard in html5 semantic with img tag be around with figure tag?

<figure>
<img alt="" src="blabla.jpg"
</figure>

Is a standard? I mean to not use img tag without figure?

when you want to have an image caption use

<figure>
<img alt="" src="blabla.jpg"
<figcaption>
    hey there!
</figcaption>
</figure>

otherwise it’s not necessary

1 Like

Thanks still you have any idea how combine it with a tag?

<a href="google.com">
<figure>
<img alt="" src="blabla.jpg">
<figcaption>
    hey there!
</figcaption>
</figure>
</a>

To be correct on validator? Something like this?

No. Figure is a special use case. Now the answer to this new question is:

<a href="google.com">
<img alt="" src="blabla.jpg">
</a>

@bestdesign Yes, that is fine.

1 Like

You can wrap almost anything in an anchor tag and it’s valid (list items and table cell wouldn’t be, for logical reasons, almost everything else is).

1 Like

Is also fine?

<em><a href="google.com">Google important link</a></em> As an important link to use? wiith em tag?