1. Home
  2. Blog
  3. SEO
  4. Schema Markup for Beginners: What It Is and How to Add It

Schema Markup for Beginners: What It Is and How to Add It

Schema markup helps Google understand your pages and can unlock rich results. Here is what it is, which types matter, and how to add and test it.

By Dinesh JangidUpdated 27 Nov 20263 min read#SEO
In this article
  1. Why schema matters
  2. Three formats — use JSON-LD
  3. The most useful schema types for businesses
  4. A simple LocalBusiness example
  5. How to add schema
  6. How to test it
  7. Common mistakes
  8. Where schema fits in SEO
  9. Learn technical SEO hands-on

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

FormatHow it worksRecommendation
JSON-LDA separate script block in the pageRecommended by Google; easiest to manage
MicrodataAttributes added inside HTML tagsWorks, but messy to maintain
RDFaAttributes inside HTMLRarely 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

  1. WordPress: SEO plugins such as Rank Math or Yoast add common schema automatically and let you configure types per page.
  2. 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.)
  3. 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.

Frequently asked questions

Does schema markup improve rankings?
Schema is not a direct ranking boost, but it helps Google understand your content and can make pages eligible for rich results, which can improve click-through rate.
What is JSON-LD?
JSON-LD is a format for adding structured data as a script in your page's HTML. Google recommends it because it is easy to add and maintain.
Will FAQ schema show FAQs in Google results?
Since 2023 Google shows FAQ rich results mainly for well-known government and health websites. FAQ markup is still valid, but most sites should not expect the rich result.
How do I test my schema?
Use Google's Rich Results Test to check eligibility for rich results, and the Schema Markup Validator to check general schema.org syntax.
Learn this in a classroom

Advanced Digital Marketing Course at HSDM Hisar

Websites, design and video, SEO with AEO and GEO, Meta and Google Ads, e-commerce and AI tools for marketing — 6 months of training plus a 2-month live agency internship.

DJ
Written by

Dinesh Jangid

Founder and head trainer at HSDM, Hisar. 12+ years running SEO, Google Ads and Meta Ads campaigns, and teaching every batch himself since 2018.

Real clients.
Real work.
Real paycheques.

We provide 100% placement assistance, and our students intern on live client campaigns inside our agency before they apply.

8+students placed (incl. samples)

Cards marked “Sample” are demo data and will be replaced with real students.

Ritika S. Sample ✔ Verified

Ritika S.

Social Media ExecutiveBrightLeaf Digital (sample)
Arjun M. Sample ✔ Verified

Arjun M.

Meta Ads SpecialistNexa Ads Studio (sample)
Neha K. Sample

Neha K.

Runs her Instagram storeOwn boutique store (sample)
Vikas R. Sample ✔ Verified

Vikas R.

SEO ExecutiveKirana Kart (sample)
Simran P. Sample

Simran P.

Freelance Google Ads & GBP3 local clinics (sample)
Aman T. Sample ✔ Verified

Aman T.

AI Automation AssistantAutoFlow Labs (sample)
Book Free Demo Now
Free syllabus PDF

Get the brochure

Full syllabus, fees, scholarship and EMI. Enter your name and WhatsApp number to download.

No spam — only course details on WhatsApp.