Home › Blog › What Is Schema Markup? A Beginner Guide to Structured Data
What Is Schema Markup? A Beginner Guide to Structured Data
Schema markup is code that tells Google what your page is about. Learn what it is, why it helps and how to add it.
Schema markup in one sentence
Schema markup is a small block of code that explains your page to search engines, for example that it is an article, a product or a list of questions and answers.
Why it matters
Google can show richer results when it understands your page, such as star ratings or expandable questions. Schema does not guarantee these results, but it makes your page easier to understand.
Common types for a small site
- Article for blog posts.
- FAQPage for question and answer sections.
- BreadcrumbList for the Home > Blog > Page path.
- Organization or Person for who is behind the site.
How to add it
Use JSON-LD, the format Google recommends. Paste a script block of type application/ld+json inside the head of the page. Only describe things that really appear on the page.
How to test it
Use Google Rich Results Test or the Search Console enhancement reports. Fix any errors, and treat warnings as optional improvements.
A simple example
Imagine you wrote an article. To a human, the title, author and date are obvious. To a computer, the page is just text. Schema markup labels these parts: this is the headline, this is the author, this is the date. The label is written in a block of code that visitors never see, but search engines can read.
The same idea works for questions and answers. If a page has a list of questions, FAQ schema tells Google exactly which text is the question and which is the answer. This is why well-marked pages can sometimes show extra details in search results.
Mistakes to avoid
The most serious mistake is marking up content that is not on the page. If your schema says there are five-star reviews but visitors cannot see any reviews, Google may ignore your markup or take action against the site. Only describe what is truly visible.
Another common problem is broken code, such as a missing comma or quote. A single typing mistake can make the whole block unreadable. Always run the Rich Results Test after editing, and fix errors before you publish.
Schema and your site type
A blog should use Article and BreadcrumbList. A shop should use Product, with price and availability. A local business should use LocalBusiness, with address and opening hours. A tool site can use WebApplication to describe what the tool does.
You do not need every type. Start with the one that matches your main page, test it, and add others slowly. A small amount of correct markup is more useful than a large amount of messy markup.
A small checklist before you publish
Check that the markup describes the main content of the page, that every name and date matches what visitors can see, and that the code has no typing mistakes. Test it with the Rich Results Test, and open the page once on your phone to make sure nothing looks broken.
Keep a copy of your working markup. When you create a new page, copy it, change the details and test again. This saves time and avoids new mistakes.
Frequently asked questions
Is schema a ranking factor?
Google says structured data helps it understand pages and can enable rich results, but it is not a direct ranking boost.
Can wrong schema hurt me?
Yes. Markup that does not match the visible page can lead to lost rich results or a manual action, so keep it honest.
Do I need a plugin to add schema?
Not always. Many themes and plugins add basic schema for you. If you write plain HTML, you can paste JSON-LD into the page head yourself.
How long until Google shows rich results?
It can take days or weeks, and Google decides whether to show them. Correct markup makes you eligible, but it is never a promise.
Related articles
- How to Write a Good Page Title and Meta Description
- How to Use Heading Tags (H1, H2, H3) Correctly for SEO and Readability
- What Is a Canonical Tag? How It Prevents Duplicate Content Problems
- How to Read the Google Search Console Performance Report
- How to Find and Fix 404 Errors on Your Website
- On-Page SEO Checklist for Beginners: 12 Things to Check
Free tools: Free website checker in Urdu · Free website speed test · Free SEO checker in Roman Urdu
Check my website free