This first use of figcaption has no special style except for the font having been made a bit larger than its default size. The figcaption tags are usually used within the figure opening and closing tags since the two properties are partners although each can be used without the other.The HTML for this image and label is simply:
<figure>
<img src="LagoonNebula.jpg" alt="LagoonNebulaf" style="width: 50%">
<figcaption class= "figcaption1">Meisje, a friend from long ago</figcaption>
</figure><figure>
<img src="Meisje2.jpg" alt="Meisje, a dog, photo" style="width: 50%">
<figcaption class= "figcaption1">Meisje, a friend from long ago</figcaption>
</figure>,
and the style used by this HTML is:
.figcaption1{font-size: 1.3em;}
If there are are multiple images with captions and a caption is not wanted for one image in class figcaption1, use <class= "figcation1" style= "display: none;"> to the HTML for figcaption will hide the caption for that image.
What do we do if we want to center one image in a page as is done below?
To get the image centered, we style a containing box that is the desired width of the image. In the HTML, let a div equal the class or id of the styled containing box. Place the image in the div with image width equal to 100% of the container's width.