<figure>
<img alt="" src="blabla.jpg"
</figure>
Is a standard? I mean to not use img tag without figure?
<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
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.
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).
Is also fine?
<em><a href="google.com">Google important link</a></em> As an important link to use? wiith em tag?