
Schema Markup: A Beginner's Guide
Schema markup is a small block of code added to a web page that tells search engines exactly what the page is about, such as your business name, address, hours, reviews, products, prices or events. It uses a shared vocabulary from Schema.org and is usually written in a format called JSON-LD. Schema does not directly boost rankings, but it can earn rich results like star ratings and product details, and it helps search engines and AI tools understand your business accurately.
What is schema markup?
Schema.org was created in 2011 by Google, Bing, Yahoo and Yandex as a common language for describing content. Instead of guessing that "(602) 555-0100" is a phone number, a search engine can read it labeled as one.
Why it matters
- Rich results: stars, prices, availability, event dates and more in search results.
- Clarity: consistent business details for Google, Bing and AI tools.
- Better listings: more eye catching results can earn more clicks.
Google says structured data is not used as a ranking factor on its own, but it can make pages eligible for search features.
Schema types small businesses should use
| Page | Schema type |
|---|---|
| Home or contact page | Organization or LocalBusiness (or a specific type like Dentist, Plumber, Restaurant) |
| Service pages | Service, plus LocalBusiness |
| Product pages | Product with Offer and Review |
| Blog posts | Article or BlogPosting |
| Events | Event |
| Every page | BreadcrumbList |
| Team pages | Person |
Example: LocalBusiness JSON-LD
Replace the details with your own and place it in the page's head or body:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Example Plumbing Co.",
"url": "https://www.example.com",
"telephone": "+1-602-555-0100",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Phoenix",
"addressRegion": "AZ",
"postalCode": "85016",
"addressCountry": "US"
},
"openingHours": "Mo-Fr 07:00-18:00",
"areaServed": ["Phoenix", "Scottsdale", "Tempe"],
"sameAs": [
"https://www.facebook.com/example",
"https://www.yelp.com/biz/example"
]
}
</script>
Keep every detail identical to your Google Business Profile and website.
How to add schema
- WordPress: SEO plugins like Yoast, Rank Math or All in One SEO add basic schema automatically.
- Shopify: most themes include Product schema; apps can add more.
- Website builders: many add basic schema; use custom code fields for the rest.
- Custom sites: paste JSON-LD into the page template, or use Google Tag Manager.
- Generators: free schema generators can build the code from a form.
How to test it
- Run the page through Google's Rich Results Test.
- Check it with the Schema Markup Validator at validator.schema.org.
- Watch the Enhancements reports in Google Search Console for errors.
What changed recently
- Google limited FAQ rich results in 2023 to well known government and health sites.
- Google stopped showing HowTo rich results in 2023.
You can still use FAQ markup for clarity, but do not expect the expandable FAQ results most sites used to get.
Schema and AI search
Schema helps machines read your facts consistently, which supports accurate answers. It is not a shortcut: AI tools still favor clear, trusted content with strong reviews and mentions. See answer engine optimization.
FAQ
What is schema markup with an example?
It is code that labels page details for search engines. For example, LocalBusiness schema labels your name, address, phone and hours.
What is the difference between JSON and JSON-LD?
JSON is a general data format. JSON-LD (JSON for Linked Data) is a version designed to describe things using shared vocabularies like Schema.org, and it is the format Google recommends.
Is schema still relevant?
Yes. It still enables rich results like product details and review stars, and it helps search engines and AI tools understand your business.
Does schema improve rankings?
Not directly. It can improve how your listing looks and how well search engines understand your page.
Check your structured data
Lucid Brands' free website audit checks your schema along with other on page SEO issues. SEO and Content Management starts at $500 a month.
Your path to lucidity
Get Started With a Free Website Audit
Not sure where to begin? Start with a free website audit. Our team analyzes your website's SEO, speed, content and user experience to identify what to improve first.
Explore More
Related Resources

Ecommerce SEO: A Practical Guide
A practical ecommerce SEO guide: keyword research for categories and products, site architecture, product and category page templates, faceted navigation, out of stock handling, product schema, content, links, AI search and a checklist.
Read More
Law Firm SEO Guide
How law firm SEO works: practice area pages, Google Business Profile, reviews, legal directories, ethics rules, AI search, costs, timelines and an ROI example.
Read More
Local SEO: The Complete Guide
What local SEO is, how Google ranks local businesses, a step by step checklist, how it differs from regular SEO, what it costs, and how to track map rankings.
Read More