Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery – Using Image Attr to populate ‘caption’ paragraph Re: JQuery – Using Image Attr to populate ‘caption’ paragraph

#94070
Chris Coyier
Keymaster

For HTML5 semantics, I’d wrap the image in a figure and put the caption in a figcaption:

http://jsfiddle.net/chriscoyier/pyTre/