How do I do schema markup?
The simplest way to implement schema markup without a developer
JSON-LD (JavaScript Object Notation for Linked Data) is the recommended format because it lives as a separate, self-contained code block in the page's head section, rather than being woven into the HTML of the visible content. This means you can add or modify schema without touching the page's actual content, making it easier to implement and maintain for non-developers. In most content management systems, there's either a dedicated 'Custom Code' or 'Header Injection' field where you can paste a JSON-LD block, or a plugin that handles it through a user interface without requiring you to write code at all.
Writing your first schema block: a practical example
For a simple Article page, the minimum JSON-LD looks like this: you open a script tag with type='application/ld+json', write an object identifying the @type as 'Article', then provide fields like headline (the article title), datePublished (the publication date in ISO format), author (the name of the author), and publisher (your organisation name with a logo). You close the script tag. That's a valid, functional Article schema block. The AI Schema Generator on aiwebpageseo.com can create this automatically from any URL, removing the need to write it manually.
Validating your schema before going live
Never deploy schema markup to a live page without validating it first. Common mistakes that look fine on the surface but break the structured data include: dates formatted incorrectly (schema expects 2026-06-26, not 26/06/2026), prices formatted with a currency symbol when schema expects a number, and required properties simply missing because they weren't included. Google's Rich Results Test (search for it in Google) lets you paste your JSON-LD or enter a URL and immediately shows whether it's valid and whether the page qualifies for rich results. This test takes under a minute and prevents shipping broken schema.
Key Takeaways
- JSON-LD lives in the HTML head as a separate block โ you don't need to change visible page content.
- Most CMS platforms have a header injection field or plugin for adding JSON-LD without coding.
- Always validate with Google's Rich Results Test before going live โ a small error silently breaks everything.