Home / Blog / How do I do schema markup?
Guide

How do I do schema markup?

23 June 2026 ยท John Carlsson
Schema markup is structured data added to your website that helps search engines better understand your content. The most widely recommended format is JSON-LD, embedded as a script tag within the HTML head section. You define the markup using vocabulary from schema.org, specifying things like article authors, product prices, review ratings, or business details. After adding it, use a structured data testing tool to verify it's valid and correctly interpreted.

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

Related Questions

Learn more: ai schema Tutorial · Guide · schema builder Tutorial · Guide
Share this post
XFacebookRedditLinkedInWhatsAppTelegramEmail
๐Ÿ’ฌ Got a problem?

aiwebpageseo.com is a data-driven SEO and AEO platform providing a free suite of technical website tools.