Skip to content

Instantly share code, notes, and snippets.

@KruegerDesigns
Created August 7, 2013 16:19
Show Gist options
  • Save KruegerDesigns/6175603 to your computer and use it in GitHub Desktop.
Save KruegerDesigns/6175603 to your computer and use it in GitHub Desktop.
Reference for image captions.
<!-- Pre HTML5 -->
<div class="img-caption" itemscope itemtype="http://schema.org/ImageObject">
<img src="" alt="" itemprop="contentURL">
<span itemprop="description">
Some image caption text.
</span>
</div>
<!-- Post HTML5 -->
<figure class="img-caption" itemscope itemtype="http://schema.org/ImageObject">
<img src="" alt="" itemprop="contentURL">
<figcaption itemprop="description">
Some image caption text.
</figcaption>
</figure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment