# Include a caption for a <figure> element in HTML5

HTMLWeb DevelopmentFront End Technology

To add a caption to a <figure> element, use the <figcaption> tag. You can try to run the following code to include a caption for a <figure> element in HTML5 −

<!DOCTYPE html>
<html>
</html>