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

Solution: Marking up a document with JSON-LD - HTML Tutorial

From the course: HTML: Structured Semantic Data

Start my 1-month free trial

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…

Contents