Skip to content Skip to navigation

Caption

CSS Class: 
.caption
How this is used: 

The caption class is used for captions beneath images, or if you want a caption below a block of text (kind of like a footnote or sidenote). The class can be applied to a <p> tag, or to a wrapper <div> or <span>.

Example: 

This is a caption.

This is another caption.

<p class="caption">This is a caption.</p>
<div class="caption">
   <p>This is another caption.</p>
</div>
HTML Element: 
Category: