From the course: HTML: Structured Semantic Data
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Marking up a document with JSON-LD - HTML Tutorial
From the course: HTML: Structured Semantic Data
Solution: Marking up a document with JSON-LD
(upbeat music) - [Instructor] So, how did you do with that challenge? Hopefully that wasn't too difficult, particularly if you'd already created the answer to the microdata challenge, it should have been relatively straight-forward. So, this is my answer. In the head of my document, I've gone ahead and included my JSON-LD and it looks just like this, as follows. So, first of all, of course, we went to Schema.org, and I'm using the product schema in order to describe a bottle of olive oil. I've given it a category of "Organic Extra Virgin Olive Oil," with a name of "Delicate," which is the flavor of this particular olive oil. I've given a path to an image, remember to make sure that that's an absolute link because this type of stuff is used by places like Google and they are not within your own website, so, don't use your relative URLs here. Description came straight off this web page, along with the SKU, the product number. It's all there. The embedded schema that I needed was the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Writing JSON-LD by hand5m 30s
-
(Locked)
Working with the Structured Data Markup Helper6m 13s
-
(Locked)
Testing our JSON-LD code with the Structured Data Testing Tool1m 20s
-
(Locked)
Challenge: Marking up a document with JSON-LD2m 6s
-
(Locked)
Solution: Marking up a document with JSON-LD1m 42s
-
(Locked)
-
-