Short answer: schema markup is structured data you add to a page so search engines understand exactly what it is — a business, a course, an article, a product, an event. The recommended format is JSON-LD, a small script in your HTML. It doesn't directly boost rankings, but it helps Google understand your content and can make pages eligible for rich results like star ratings, prices or breadcrumbs.
Why schema matters
Search engines read text well, but they can still misunderstand what a page represents. Schema removes the guesswork: "this page is a Course offered by this EducationalOrganization at this address". That clarity helps with rich results, knowledge panels, local results and AI-generated answers.
Three formats — use JSON-LD
| Format | How it works | Recommendation |
|---|---|---|
| JSON-LD | A separate script block in the page | Recommended by Google; easiest to manage |
| Microdata | Attributes added inside HTML tags | Works, but messy to maintain |
| RDFa | Attributes inside HTML | Rarely used for SEO today |
The most useful schema types for businesses
- Organization / LocalBusiness — name, logo, address, phone, opening hours, social profiles. Essential for local businesses.
- WebSite — your site's name and URL.
- BreadcrumbList — shows the page's position in your site; can appear as breadcrumbs in results.
- Article / BlogPosting — headline, author, dates, image for blog posts.
- Course — for training institutes: course name, description, provider.
- Product — price, availability and reviews for e-commerce.
- Event — date, location and tickets for workshops and seminars.
- FAQPage — valid markup, though FAQ rich results are now shown mainly for authoritative government and health sites.
A simple LocalBusiness example
This is the kind of script you place in the page's <head> or body:
{"@context":"https://schema.org","@type":"LocalBusiness","name":"Your Business","address":{"@type":"PostalAddress","streetAddress":"Shop 12, Main Market","addressLocality":"Hisar","addressRegion":"Haryana","postalCode":"125001","addressCountry":"IN"},"telephone":"+91-XXXXXXXXXX","url":"https://example.com"}
Use details that exactly match your Google Business Profile — see the Google Business Profile checklist.
How to add schema
- WordPress: SEO plugins such as Rank Math or Yoast add common schema automatically and let you configure types per page.
- Custom websites: generate JSON-LD in your templates from your database, so every page stays accurate automatically. (This website does exactly that for courses, articles and breadcrumbs.)
- Google Tag Manager: possible for quick tests, but server-side markup in the page is more reliable.
How to test it
- Rich Results Test — shows whether a page is eligible for Google rich results and lists errors.
- Schema Markup Validator — checks schema.org syntax for any type.
- Search Console enhancements reports — show schema errors across your whole site over time.
Common mistakes
- Marking up content that isn't on the page — for example fake review stars. This breaks Google's guidelines.
- Wrong or inconsistent details — address or phone different from your profile.
- Self-serving reviews — Google doesn't show review stars for reviews a business writes about itself.
- Copy-pasting schema across pages without changing it.
- Expecting instant rich results — eligibility isn't a guarantee.
Where schema fits in SEO
Schema supports good content and technical SEO; it can't replace them. Get indexing and on-page basics right first — read technical SEO for beginners and how to get cited in AI Overviews.
Learn technical SEO hands-on
Structured data, Search Console and site audits are part of the SEO training in HSDM's Advanced Digital Marketing course.