Anything can be captioned.
echo "i have a caption!"
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly
see?