schemaorg-coda :: Example

eg-0334

From v29.4

JSON-LD

{
  "@context": "https://schema.org/",
  "@type": "Course",
  "name": "Basic Proofreading",
  "description": "The distance learning training course that takes you \r\n        from complete beginner to PQB qualified proofreader in one step.",
  "hasCourseInstance": [
    {
      "@type": "CourseInstance",
      "courseMode": [
        "distance learning",
        "Online"
      ],
      "offers": {
        "@type": "Offer",
        "price": "395",
        "priceCurrency": "GBP"
      }
    },
    {
      "@type": "CourseInstance",
      "courseMode": [
        "Posted",
        "distance learning"
      ],
      "offers": {
        "@type": "Offer",
        "price": "440",
        "priceCurrency": "GBP"
      }
    }
  ]
}

RDFa

<body vocab="https://schema.org/">
<!--A self-paced distance learning course (no events)-->
<!--Based on http://www.train4publishing.co.uk/courses/distance-learning/basic-proofreading -->
<div typeof="Course">
  <h1 property="name">Basic Proofreading</h1>
  <p property="description">The distance learning training course that takes you
        from complete beginner to PQB qualified proofreader in one step.</p>
  <div rel="hasCourseInstance" typeof="CourseInstance">
    <meta property="courseMode" content="distance learning" />
    <span property="courseMode">Online</span>,
    <div rel="offers" typeof="Offer">
      cost:<meta property="priceCurrency" content="GBP" />
           £<span property="price">395</span>
    </div>
  </div>
  <div rel="hasCourseInstance" typeof="CourseInstance">
    <meta property="courseMode" content="distance learning" />
    <span property="courseMode">Posted</span>,
    <div rel="offers" typeof="Offer">
      cost:<meta property="priceCurrency" content="GBP" />
           £<span property="price">440</span>
    </div>
  </div>
</div>
</body>

Pre-Markup

<body>
<!--A self-paced distance learning course (no events)-->
<!--Based on http://www.train4publishing.co.uk/courses/distance-learning/basic-proofreading -->
<div>
  <h1>Basic Proofreading</h1>
  <p>The distance learning training course that takes you
        from complete beginner to PQB qualified proofreader in one step.</p>
  <div>
    Online, cost: £395
  </div>
  <div>
    Posted, cost:£440
  </div>
</div>
</body>