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,

  1. what if title content of page (such pictures of birds , academic names, such "sparrow" , "finch"), <h3> make more sense? or

  2. what if titles game, can "iron man", "hello kitty", "bugs bunny", etc, doesn't mean real content page rather names used game, <div> more suitable, or

  3. if 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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -