
Here’s a basic example of what the code can look like:

You can see that, unlike the words on a page, schema is a form of structured data. Its standardized format means there’s no chance of Google misinterpreting it. That’s why Google uses it for rich results.
Schema’s role has also expanded beyond traditional search. A common question among SEOs today is whether schema markup influences AI-generated responses in tools like ChatGPT, Gemini, and AI Overviews. The short answer is: it depends on the platform and the pathway.
In this guide, you’ll learn more about the role schema plays in AI search, along with the different types of schema you can use, when to add it, and how.
Another method is to add the code manually. Although this enables total customization of schema on your website, it’s worth seeking advice from an SEO consultant or developer before you get started, especially if you’re not confident with code.
Schema markup code can be generated in three different languages: microdata, RDFa, and JSON-LD.
Even though Google supports all three, it recommends JSON-LD (Javascript Object Notation for Linked Objects), as it’s less prone to user errors.
This has also been confirmed separately by John Mueller:
You can generate the raw JSON-LD code yourself using a tool like Dentsu’s Schema Markup Generator, Google’s Structured Data Markup Helper, or even ChatGPT.
I’m going to use Dentsu’s schema generator to generate my code. To do this, head to the schema generator and select the type of schema you want to generate. I’ve chosen Event.

Then add the information into the required fields. I’ve added a fictional SEO conference as an example.

Once you’ve created the JSON-LD code, add it to either the <head> or the <body> of the page. Google has confirmed either is fine.

















