SEO & Marketing 4 min read

Schema Markup for Beginners: Get Rich Results the Right Way

Schema markup tells search engines exactly what a page is about and can unlock rich results. Here is what to add, how JSON-LD works, which types still earn rich results, and how to test it.

A
AsaanWeb Editorial Team
AsaanWeb Editorial

Search engines are good at reading pages, but they still have to guess. Is "4.8" a rating or a version number? Is this page a product, a recipe or an article? Schema markup — also called structured data — removes the guesswork by describing your page in a standard vocabulary from Schema.org.

Done right, it can earn rich results: star ratings, prices, breadcrumbs, event dates and other enhanced listings that stand out in search. Done wrong, it does nothing, or worse, earns a manual action for misleading markup.

What schema markup looks like

Google recommends JSON-LD: a small block of JSON inside a <script> tag, separate from your visible HTML. Here is a minimal example for a business:

{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Co",
  "url": "https://example.com",
  "logo": "https://example.com/logo.png",
  "sameAs": ["https://www.facebook.com/example", "https://www.linkedin.com/company/example"]
}

It goes in the page as:

<script type="application/ld+json">
{ ...the JSON above... }
</script>

You don't need to hand-write it. The free Schema Generator builds valid JSON-LD for common types from a simple form, ready to paste into your site.

Which schema types are worth adding

Start with what describes your real content:

| Page type | Schema type | Possible search enhancement | |---|---|---| | Home page / about | Organization or LocalBusiness | Logo, business details, knowledge panel signals | | Blog posts and news | Article / BlogPosting / NewsArticle | Better article understanding, top stories eligibility | | Product pages | Product with Offer and AggregateRating | Price, availability, review stars | | Every deeper page | BreadcrumbList | Breadcrumb trail instead of a raw URL | | Events | Event | Dates and location in results | | Job listings | JobPosting | Google Jobs listing | | Videos | VideoObject | Video thumbnails and key moments | | Software and tools | SoftwareApplication | App details and ratings |

An honest note on FAQ and HowTo rich results

Many older guides promise that adding FAQPage or HowTo markup gets you big expandable results. That changed in August 2023: Google stopped showing HowTo rich results, and limited FAQ rich results to well-known, authoritative government and health websites.

The markup is still valid Schema.org and still helps machines understand your content — including AI-powered search and answer engines — so it is not harmful to keep it if it accurately reflects visible content. Just don't expect the FAQ dropdowns in Google for a typical business site.

Rules that keep you out of trouble

Google's structured-data guidelines boil down to a few principles:

  • Mark up only what users can see. Ratings, prices and FAQs in your JSON-LD must appear on the page.
  • Be truthful. Fake reviews, invented ratings or prices you don't honour violate the guidelines and can trigger a manual action.
  • Be specific. Use the most specific type that fits (Restaurant rather than just LocalBusiness).
  • Fill in required properties. Each rich result type lists required and recommended fields. Missing required fields make the page ineligible.
  • Keep it current. Out-of-date prices or availability in markup are a common error.

How to add schema to your site

  • WordPress: SEO plugins add Organization, Article and breadcrumb schema automatically; add product schema through your e-commerce plugin.
  • Shopify and other platforms: most themes include product schema; check it is complete.
  • Custom or JavaScript sites: generate JSON-LD on the server or at build time so it is present in the initial HTML. Markup injected late by JavaScript can be picked up, but it is less reliable.
  • Per page, not site-wide: an article's schema belongs on that article, not copied into every page.

Test before and after publishing

  1. Paste your URL or code into Google's Rich Results Test to see which rich results the page is eligible for and any errors.
  2. Use the Schema Markup Validator (validator.schema.org) to check general Schema.org validity.
  3. After deployment, watch the Enhancements reports in Google Search Console, which flag errors across all your pages.
  4. Run a broader SEO audit occasionally — broken structured data often travels with other problems like missing titles or canonical errors.

Common mistakes

  • Markup describing content that isn't on the page.
  • The same Organization block with reviews pasted on every page.
  • Invalid JSON (a missing comma breaks the whole block — validators catch this).
  • Relative URLs for url, logo or image; use absolute URLs.
  • Multiple conflicting blocks from a theme and a plugin describing the same thing differently.

Key takeaways

  • Schema markup describes your content in a standard vocabulary; JSON-LD is the recommended format.
  • Prioritise Organization/LocalBusiness, Article, Product, BreadcrumbList and other types that match your real pages.
  • FAQ and HowTo rich results are no longer shown for most sites, but accurate markup still helps machines understand content.
  • Only mark up visible, truthful information, and test with the Rich Results Test and Search Console.

FAQ

Does schema markup improve rankings?

Not directly. It helps search engines understand your page and can make you eligible for rich results, which can improve click-through rate. Rankings still depend mainly on relevance and quality.

Is JSON-LD better than Microdata?

Google supports both, but recommends JSON-LD because it is kept separate from your HTML, making it easier to add, maintain and validate without touching the page layout.

How long until rich results appear?

After Google recrawls the page, which can take days to weeks. Eligibility is not a guarantee — Google decides whether to show a rich result for each search.

Sources

schema markup structured data json-ld rich results seo

Share this article

37 free PDF, SEO & AI tools

Run them in your browser — no sign-up, no watermarks.

Open free tools

Keep reading

How to use this page

  1. 1

    Start with the table of contents to jump straight to the section that matches your problem.

    Browse all AsaanWeb guides
  2. 2

    Use the linked free tools as you read — audit your site, research keywords or check what the project should cost.

    Open the free tools
  3. 3

    When you want the work handled for you, send the article and your website to AsaanWeb for a fixed-price scope.

    Request a free quote

AsaanWeb Guide — How to Use This Article

Related AsaanWeb pages

Continue with these pages for more information, tools, pricing, or help from the AsaanWeb team.