html5 - What HTML element should be used for a label / title under images? -
let's have row of images, , each image should have short label or title under it.
should use <h3> or <div> or else label or title?
for example:
<ul> <li> <img ...> <h3>iron man</h3> </li> <li> ... </li> </ul> would depends on 3 cases, that,
what if title content of page (such pictures of birds , academic names, such "sparrow" , "finch"),
<h3>make more sense? orwhat if titles game, can "iron man", "hello kitty", "bugs bunny", etc, doesn't mean real content page rather names used game,
<div>more suitable, orif games "hello kitty", "pochacco", "keroppi", characters of sanrio, more semantically correct use
<h3>because denote meaningful names theme of game?
(or besides <h3> , <div>, more semantically correct use other tags?)
i'd suggest using <figure> , <figcaption> elements:
<li> <figure> <img src="…" /> <figcaption> <h3>image title</h3> <p>some text describe image</p> </figcaption> </figure> </li> but is, incredibly subjective.
references:
Comments
Post a Comment