×

html · level 3 · unit 5 · lesson 2

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Objects inside objects describe the details.

Curly brackets make an : a set of pairs that belong together. A value can itself be an object. An event's location is a place, with its own @type, name and address.

Write dates the way computers agree on. An goes year, month, day, like 2026-06-14. Add a time after a T, on the 24-hour clock: 2026-06-14T19:00 is 7pm.

Commas go between pairs, never after the last pair in an object. One missing or extra comma breaks the whole block, and search engines quietly ignore all of it.

<script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Event",
    "name": "Summer fair",
    "startDate": "2026-06-14T11:00",
    "location": {
      "@type": "Place",
      "name": "Pip's Plants",
      "address": "12 Mill Lane, Leeds"
    }
  }
</script>
<h1>Summer fair</h1>
<p>Saturday 14 June, from 11am.</p>

Press show my page to see it here.

Indent each object two spaces further than the one around it, so you can see which facts belong together.