A basic <figure> and <figcaption> example using images
Code using figure
An example to demonstrate the use of figure and figcaption with code
Other uses of <figure> and <figcaption>
Quotes, parts of poems can also be a part of figure
The above examples have <figcaption> as the first element of <figure> so now we will try it being the last element as w3c recommends it can be either first or last element of <figure>
Image using figure
A basic <figure> and <figcaption> example using images
Code using figure
An example to demonstrate the use of figure and figcaption with code
Other uses of <figure> and <figcaption>
Quotes, parts of poems can also be a part of figure