Should I use <figure> with thumbnails?

Say for instance I was developing an ecommerce website. When displaying search results for a product, as thumbnails with pricing information etc, should I wrap each result within separate figure tags, or wrap all results within one set of figure tags, or neither?

Basically; is the figure element meant to be used for this kind of thing?

personally i use figure for one self-containing media content, so 1 picture with a caption, or a set of pictures that together conveys a message. So in your case I would probably wrap each individual search result in <article> which is one self-containing composition (e.g. blog post, search result).

1 Like