html · level 3 · unit 5 · lesson 2
- meet it
- guess first
- your turn
- fix it
- 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.
guess first
When does the gig start, according to this data?
Guess before you run it. Wrong guesses are how you learn, and nothing is marked.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "MusicEvent",
"name": "The Night Owls live",
"startDate": "2026-09-05T20:00",
"location": {
"@type": "Place",
"name": "The Lantern Rooms"
}
}
</script>
<h1>The Night Owls live</h1>
your turn
Your turn. Add the date and the place.
Set startDate to 20 March 2026 at 7:30pm. Then make the location a Place named The Red Lion.
Press show my page to see it here.
- the quiz starts 20 March at 7:30pmnot checked yet
- the location is a place objectnot checked yet
fix it
Search engines ignore the whole event. Can you fix it?
Press show my page to see it here.
- no comma after the last pairnot checked yet
- the date has not changednot checked yet
- One stray mark makes the whole block unreadable. Look at the end of each object.
- A comma means another pair is coming. After the last pair in an object, there must not be one.
- Delete the comma after
"Pip's Plants"on line 9, then press run.
nailed it
your data has depth now. :D
- A value can be an object with its own pairs.
- Write dates year-month-day, with the time after a
T. - Commas go between pairs, never after the last.
new words in your collection
- object
- ISO date
This lesson isn’t saved. A free account remembers every lesson you finish.