From the course: HTML: Structured Semantic Data
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Testing our JSON-LD code with the Structured Data Testing Tool - HTML Tutorial
From the course: HTML: Structured Semantic Data
Testing our JSON-LD code with the Structured Data Testing Tool
- [Instructor] Now that we've gone ahead and used the markup tool to get our JSON LD written the next thing always to do is to test it and make sure that it's working correctly for Google. And so if you go on ahead and open up your exercise file for this chapter go on ahead and highlight everything, copy, and we're going to go back again to the Google Structured Data Testing Tool. And when you arrive here it's going to ask you for a URL. We don't have one 'cause we haven't put it on the web, but we can put in a code snippet instead. Go on ahead and paste your HTML here and then say run test. And what's going to happen is that it will go on ahead and basically give you back the same JSON LD you already have written. It will make sure that you've written this correctly. So why would you go about doing this even if Google went ahead and wrote most of your code in the JSON LD? Well remember we went ahead and added some additional stuff to this like a price range. Maybe we put in a comma…
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)
-
-