I have a blog that has posts that contain images.
The HTML for the images looks like this:
<figure> <img> <figcaption>Photo courtesy of ABC.</figcaption> </figure>
However, when I checked MDN’s documentation, I found that this use of
<figcaption> for the photographer is incorrect:
The HTML or Figure Caption element represents a caption
or legend describing the rest of the contents of its parent
So then I tried to find an HTML tag that makes sense semantically for citing the photographer.
Another search revealed the
<cite> tag, but according to the MDN documentation:
The HTML Citation element () is used to describe a reference to a cited creative work, and must include the title of that work.
So what’s the (a?) semantically correct tag for citing the photographer on an image?