Table of Contents
Schema markup is code that labels facts on your site. It can tell Google your shop name, where you work, and when you open. Start with one page that shows those facts. Pick the right type, then test the live page after you add the code.
What Is Schema Markup, and What Does It Do?
How Does Schema Markup Work?
Say your site says “9 a.m. to 5 p.m.” A person can tell those are shop hours. With structured data markup, you can tell a search engine the same thing. Schema.org markup lets you name facts like your hours, phone, and address. Think of each name as a label on a form.
Schema markup vs. structured data comes down to the labels and the facts they describe. Structured data is the set of facts with labels, and schema markup is how you add those labels to a web page. JSON-LD schema markup puts the facts in one block of code. Google Search Central suggests using this format. With JSON-LD vs. Microdata, the main difference is where the labels go. JSON-LD groups them in a script, while Microdata puts them in the HTML near each fact. RDFa structured data also adds labels to HTML.
Does Schema Markup Help SEO?
One of the main benefits of schema markup is that it helps search engines understand a page. Some types of schema markup can help a page qualify for Google rich results, such as product results that show a price. You may hear people call this schema markup for rich snippets. If you’re looking up rich results vs. rich snippets, Google uses rich results for its enhanced search features.
Structured data for SEO works best when it backs up what is on the page. If you’re weighing schema markup for local SEO, start with the facts that help people find or call you. Google rich result eligibility means a page can appear with a supported feature. Google decides when to show that feature.
Which Schema Type Does Your Small Business Need?

To pick the best schema for local business pages, start with how and where you serve people. Use LocalBusiness or a more specific type for a real shop or branch.
| If you run this kind of business | Where to start |
| One shop, salon, or place to eat | Add local business schema markup to a page that shows your shop name and street address. |
| Two or more branches | Use local business schema for multiple locations. Give each branch its own entry and use its own location page when you have one. |
| A business that works at clients’ homes | Use Organization schema markup for the firm and Service schema markup for the work. Use areaServed to show where you work. |
| An online-only shop | Use OnlineStore for the shop. Add Product schema markup to a page for a single item. Use Offer for details such as its price. |
The choice between LocalBusiness and Organization schema depends on what you need to describe. Google asks for a physical address to qualify for its LocalBusiness feature. If you need schema markup for a service-area business and keep your street address private, you can still describe the firm and the work it does. For an online-only shop or another firm, put its main details on the home page or on a page that describes the firm.
Which Local Business Schema Types Fit Common Trades?
| If you need… | Start by checking this type |
| Schema markup for plumbers | Plumber |
| Schema markup for electricians | Electrician |
| Schema markup for restaurants | Restaurant |
| Schema markup for hair salons | HairSalon |
| Schema markup for law firms | LegalService |
| Schema markup for dentists | Dentist |
| Schema markup for auto repair shops | AutoRepair |
| Schema markup for retail stores | Store |
For schema markup for home service businesses, pick a type that fits the trade if you have a real location to mark up. If you work across town and keep your address private, use the service-area approach above. For schema markup for online stores, check the shop and product pages on their own. Each page has a different job.
Where to Add Local Business Schema and Other Types
| Page | What to mark up |
| Home page | Use schema markup for a homepage to describe the main firm or store if the page shows its details. |
| About page | Use schema markup for an About page if this is the best place to find the firm’s name, logo, and key facts. |
| Contact page | Use schema markup for a Contact page when that page shows the shop’s address, phone, and hours. |
| Branch page | Use schema markup for business location pages to show the facts for each branch. |
| Service page | Use schema markup for service pages to describe what you do and where you do it. |
| Product page | Use Product and, when it fits, Offer for a real item and its price. |
| Page with breadcrumbs | Use breadcrumb schema markup and BreadcrumbList to show where the page sits on the site. |
| Blog post | Use article schema markup and BlogPosting for details like the title and author. |
| Public event page | Use event schema markup and Event when the page gives facts about a real event, such as the date and place. |
See Google’s search gallery for the features and rules that apply to each supported type.
LocalBusiness Schema Markup Explained With an Example

Here is a JSON-LD schema markup example for a made-up salon. Its web page shows its name, street address, phone, and hours. The code gives those same facts clear labels. Use your own real details when you add it to your site.
<script type=”application/ld+json”>
{
“@context”: “https://schema.org”,
“@type”: “HairSalon”,
“@id”: “https://example.com/salon/#business”,
“name”: “Oak Lane Salon”,
“url”: “https://example.com/salon/”,
“address”: {
“@type”: “PostalAddress”,
“streetAddress”: “100 Example Street”,
“addressLocality”: “Houston”,
“addressRegion”: “TX”,
“postalCode”: “77002”,
“addressCountry”: “US”
},
“telephone”: “+1-713-555-0142”,
“openingHoursSpecification”: {
“@type”: “OpeningHoursSpecification”,
“dayOfWeek”: [“Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”],
“opens”: “09:00”,
“closes”: “17:00”
}
}
</script>
The @type is the kind of place the code describes. Here, that type is HairSalon. The PostalAddress type holds the parts of the address. Google calls for both a name and an address in its local business schema guide. The telephone field holds the phone number. The url field points to the shop page. The openingHoursSpecification field holds the days and hours.
Which Business Details Can You Add?
| If you want to show… | Field to check |
| Your shop’s street, city, state, ZIP code, and country | Use a local business schema address with streetAddress, addressLocality, addressRegion, postalCode, and addressCountry. |
| How to call your shop | For a local business schema phone number, use telephone. |
| When your doors open and shut | For local business schema opening hours, use openingHoursSpecification with dayOfWeek, opens, and closes. |
| A date range for special hours | To show holiday hours in structured data, check the date fields validFrom and validThrough for your hours. |
| Where your shop is on a map | For local business schema geographic coordinates, use geo with GeoCoordinates. A map link can use hasMap. |
| What a visit tends to cost | For a local business schema price range, use priceRange if the page shows that range. |
| A photo, logo, or official profile | For a local business schema image, use image. The logo field points to your logo. The sameAs field can link to pages that show who you are, such as an official social profile. |
Google’s local business schema examples show more ways to list your hours. Its search gallery has schema markup examples for other pages, such as products and events.
How to Add Schema Markup to a Website
1. Check what your site already has
If you’re learning how to check if a website has schema markup, paste the live page link into the Schema Markup Validator. Look at the home page first. Then check one branch, service, or product page. Your theme or SEO plugin may have set up the fields for you.
2. Pick the right page and tool
If you’re unsure how to add local business schema, use the page that already shows your shop details. A branch page is a good place to start if you have more than one shop.
If you want to learn how to write schema markup, use the salon code above as a starting point. A free schema markup generator can save time by turning a form into code. A local business schema generator asks for shop facts. A JSON-LD schema markup generator gives you code in that format. You can also try the Google Structured Data Markup Helper if it lists the type you need. Check any tool’s output against the facts on your site.
3. Add the code or use your site settings
If you’re learning how to implement schema markup by hand, use your site’s code field for that page. If you need to know where to put schema markup in HTML, the JSON-LD script can go in the page’s head or body. Some site tools do this for you.
| Site setup | Where to check first |
| WordPress schema markup | To learn how to add schema markup in WordPress, check the settings in your current SEO tool. A WordPress schema markup plugin may already add it. |
| Shopify schema markup | Test a product page to see what your theme adds before you make a change. |
| Squarespace local business schema | Check the business settings and test the live page before you add custom code. |
| Webflow schema markup | Check the code or schema settings for the page you want to mark up. |
4. Keep related facts tied to the right place
You may see schema markup with multiple types on one page, such as a salon and one of its services. Here’s how to connect schema markup with @id. In the service’s provider field, add an object with the salon’s @id. Use a stable ID, such as the page link followed by #business. Then publish the page and test the live link.
How to Test Schema Markup and Fix Errors

| Tool | What it checks |
| Schema Markup Validator | A schema markup validator reads Schema.org code and shows the types and fields it found. |
| Google Rich Results Test | This structured data testing tool checks the types that Google supports for rich results. It shows errors and warnings for those features. |
| URL Inspection Tool | In Google Search Console, use this tool to see how Google reads the live page or what it found when it last indexed the page. |
| Google Search Console structured data reports | Use the rich result reports that are available for your site. They can flag problems with types Google has found. |
To learn how to fix structured data errors, start with one issue. For example, if the salon’s test flags a missing address, check that the address is on the page and in the code. Save the fix and test the live link again. Fix missing required schema properties first. When you compare required vs. recommended schema properties, think of the required ones as the fields a feature needs. Add suggested fields when you have real facts to share.
What Schema Markup Mistakes Should Small Businesses Avoid?
- Old facts. If you wonder how to update schema markup, find the tool or code that adds it. Change the page and its code when your hours, phone, or address change.
- Duplicate schema markup with mixed facts. A theme and a plugin can both add code. If one gives old hours, edit it at the source. A quick schema markup audit can help you find which tool added each set of facts.
- Facts people can’t see. The Google structured data guidelines ask you to mark up real page content. Keep schema markup and visible page content in sync.
- Expecting stars for your own shop. Review schema markup uses Review for a single review. Aggregate rating schema markup uses AggregateRating for a score based on more than one rating. Google rules on self-serving review markup make reviews of your own firm ineligible for the star review feature when your firm controls those reviews. This also applies to reviews you show through an outside widget.
Frequently Asked Questions
What Is Structured Data Used For?
It helps search engines read facts about your site and its pages. For instance, it can show which page is about your shop and which pages are about things you sell.
Does Schema Markup Affect Rankings?
Use schema markup for SEO to help Google read your page and check if it can show a rich result. Adding the code by itself does not guarantee a higher spot in search.
Do I Need Schema Markup on Every Page?
Start with the pages that show key facts. A shop can start with its main page or branch page. An online store can start with its home page and a product page
Can I Add Schema Markup Without Knowing How to Code?
Yes. A form-based tool can make schema markup much easier for beginners to set up. You can also use your site settings or a plugin, then check the live page to see what the tool added.
Can I Use Schema Markup Without Publishing My Street Address?
Yes. If you travel to clients, describe the business with Organization and use Service with areaServed for the places you cover. A service area alone does not meet Google’s physical address requirement for its LocalBusiness feature.
Can a Local Business Get Review Stars in Google?
Google’s star review feature can apply when a site posts eligible reviews about other local businesses. Reviews that a firm controls about itself do not qualify under Google’s local business and organization review rules.
Why Are Rich Results Not Showing After My Page Passed the Test?
A pass means the tested code meets the tool’s checks for a feature. If you still wonder why rich results are not showing, check that Google can read the page and that the facts match. Give Google time to crawl the page again. Google still decides when to show a rich result.