schemaorg-coda :: Example

eg-0018

From v29.4

JSON-LD

{
  "@context": "https://schema.org",
  "@type": "Table",
  "about": "list of presidents"
}

RDFa

<div vocab="https://schema.org/" typeof="Table">
  <h2 property="about">list of presidents</h2>
  <table>
    <tr><th>President</th><th>Party</th></tr>
    <tr>
      <td>George Washington (1789-1797)</td>
      <td>no party</td>
    </tr>
    <tr>
      <td>John Adams (1797-1801)</td>
      <td>Federalist</td>
    </tr>
    <!-- ... -->
  </table>
</div>

Microdata

<div itemscope itemtype="https://schema.org/Table">
  <h2 itemprop="about">list of presidents</h2>
  <table>
    <tr><th>President</th><th>Party</th></tr>
    <tr>
      <td>George Washington (1789-1797)</td>
      <td>no party</td>
    </tr>
    <tr>
      <td>John Adams (1797-1801)</td>
      <td>Federalist</td>
    </tr>
    <!-- ... -->
  </table>
</div>

Pre-Markup

<h2>list of presidents</h2>>
<table>
  <tr><th>President</th><th>Party</th></tr>
  <tr>
    <td>George Washington (1789-1797)</td>
    <td>no party</td>
  </tr>
  <tr>
    <td>John Adams (1797-1801)</td>
    <td>Federalist</td>
  </tr>
  <!-- ... -->
</table>