onsa
12/19/2016 - 4:58 PM

Sample usage of schema.org

Sample usage of schema.org

<!-- define the scope of a semantic unit -->
<div itemscope
  itemtype="http://schema.org/Movie">

  <!-- specify what property of the unit is given -->
  <div itemprop="director"
    itemscope itemtype="http://schema.org/Person">
  </div>

</div>

---

<!-- specify time and date in unambiguous format -->
<time datetime="YYYY-MM-DDTHH:II">DD/MM/YY, HH:II</time>
<!-- P for period -->
<time itemprop="cookTime" datetime="PT1H30M">1 1/2 hrs</time>

---

<!-- specify value from an 'enumeration' of possible values (use <link> instead of <a> to show link only to search engines) -->
<link itemprop="availability" href="http://schema.org/InStock"/>Available