Schema Markup: A Practical Guide to Structured Data

A person reading your contact page understands at once that "Mon to Fri, 8 to 5" means opening hours and that the number beside the telephone icon is how to call you. A search engine sees text and has to infer the meaning. It usually infers correctly, but not always, and never with complete certainty.
Structured data removes the guesswork. It is a standard way of labelling the information on a page so that machines know exactly what each piece is: this is a business, this is its address, this is a product, this is its price. This guide explains what schema markup is, what it can and cannot do for your search visibility, which types are worth implementing and how to add and test it properly.
What structured data is
Structured data is code added to a page that describes its content in a format search engines can read reliably. The shared vocabulary for these descriptions is maintained at Schema.org, a project founded by the major search engines. People use "schema markup" and "structured data" interchangeably.
There are three formats. Google recommends JSON-LD, which sits in a script block separate from the visible HTML and is therefore the easiest to add and maintain. The older alternatives, Microdata and RDFa, weave attributes into the page's HTML elements. Unless you have a specific reason, use JSON-LD.
What it does, and what it does not
Benefits
- Clearer understanding. Search engines can identify what a page is about and the entities it describes, such as your organisation, people, products and locations.
- Eligibility for rich results. Certain types of markup allow Google to show enhanced listings: star ratings, prices, availability, event dates, breadcrumb trails and more. These stand out and can improve click-through rate.
- Stronger entity signals. Describing your business consistently helps search engines, and the AI systems that draw on them, connect your website with your other profiles and mentions.
Limits
- Structured data is not a direct ranking factor. It will not lift a page that does not otherwise deserve to rank.
- Rich results are not guaranteed. Valid markup makes a page eligible; Google decides whether to show the enhancement.
- Google supports rich results for a specific list of types, and that list changes. Features are added and retired, so check Google's Search Gallery documentation for what is currently supported before investing effort in a type.
The anatomy of JSON-LD
Here is a simple example for an organisation.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Company Ltd",
"url": "https://www.example.com/",
"logo": "https://www.example.com/images/logo.png",
"telephone": "+254700000000",
"sameAs": [
"https://www.linkedin.com/company/example",
"https://www.facebook.com/example"
]
}
</script>
@contextstates that the vocabulary is Schema.org.@typesays what kind of thing is being described.- The remaining lines are properties and their values.
sameAslists other official pages about the same entity, which helps search engines connect them.
Types can be nested. An organisation can contain an address, which is itself a PostalAddress with its own properties.
The types most businesses should use
Organization
Place this on the homepage. Include name, URL, logo, contact details and sameAs links. It establishes who operates the site.
LocalBusiness
For any business that serves customers at a location or within an area. Use the most specific subtype available, such as Dentist, Restaurant, LegalService or ProfessionalService.
{
"@context": "https://schema.org",
"@type": "ProfessionalService",
"name": "Example Consulting",
"image": "https://www.example.com/office.jpg",
"url": "https://www.example.com/",
"telephone": "+254700000000",
"address": {
"@type": "PostalAddress",
"streetAddress": "Example Plaza, 3rd Floor, Example Road",
"addressLocality": "Nairobi",
"addressCountry": "KE"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
"opens": "08:00",
"closes": "17:00"
}]
}
Details must match your Google Business Profile exactly. See the local SEO guide for why consistency matters.
BreadcrumbList
Describes the page's position in the site hierarchy. Google can show the breadcrumb trail in place of the raw URL in results, which gives searchers useful context.
Article and BlogPosting
For news and blog content. Include the headline, author, publication date, modification date and image. Naming the author as a Person with a link to their profile page supports the signals of expertise discussed in content strategy for SEO.
Product
Essential for online stores. A product with an offer looks like this:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Ergonomic Office Chair",
"image": "https://www.example.com/chair.jpg",
"description": "Adjustable mesh-back office chair with lumbar support.",
"sku": "CH-1001",
"brand": { "@type": "Brand", "name": "Example Brand" },
"offers": {
"@type": "Offer",
"url": "https://www.example.com/chairs/ergonomic-office-chair",
"priceCurrency": "KES",
"price": "18500",
"availability": "https://schema.org/InStock"
}
}
Add aggregateRating and review only when real customer reviews appear on that page. More on stores in the ecommerce SEO guide.
Service
Describes a service you offer, its provider and the area served. It does not produce a rich result of its own, but it clarifies what each service page is about.
Person
For professionals, authors and public figures. Include name, job title, employer and sameAs links to professional profiles.
Event
For workshops, conferences, concerts and classes. Include name, start date, location or online attendance details, and ticket information.
Course, JobPosting, Recipe, VideoObject
Use these where they apply. Training providers benefit from course markup, employers from job posting markup, and any site with video from VideoObject.
FAQPage
Marks up a list of questions and answers. Google now shows FAQ rich results only for a limited set of authoritative government and health websites, so most businesses will not see the expandable questions in results. The markup is still valid and still helps machines parse your questions and answers, but do not add it expecting a visual enhancement.
Reviews: a caution
Google does not show star ratings for LocalBusiness or Organization markup when the reviews are about your own business and controlled by you. Marking up testimonials on your own site to obtain stars is described as "self-serving" and is not eligible. Never mark up reviews that are invented or that visitors cannot see.
How to add structured data
- CMS plugins. On WordPress, SEO plugins such as Yoast, Rank Math and SEOPress generate Organization, Article, Breadcrumb and other markup automatically once configured. Ecommerce platforms usually output Product markup.
- Theme or template code. Developers can add JSON-LD to templates so that values are filled in from the page's data. This is the most reliable approach for custom sites.
- Manual insertion. For a few pages, write the JSON-LD and paste it into the page's head or body.
- Tag management. JSON-LD can be injected through Google Tag Manager. Google can process it, but markup in the page source is more dependable.
- Generation at scale. For hundreds of products or locations, markup can be generated from a spreadsheet or database with a script, as described in Python for SEO.
Avoid duplication. If your plugin and your theme both output Organization markup, the two may conflict. Check what is already on the page before adding more.
Testing and validating
- Rich Results Test (search.google.com/test/rich-results): shows which rich result types a page is eligible for and lists errors and warnings. Errors prevent eligibility. Warnings indicate recommended properties that are missing.
- Schema Markup Validator (validator.schema.org): checks any Schema.org markup for correct syntax, including types Google has no rich result for.
- Google Search Console: the Enhancements section reports on structured data found across the site, with counts of valid and invalid items over time. Check it after any template change.
Test before publishing, then again on the live URL.
Google's rules for structured data
Breaking these can lead to a structured data manual action, which removes eligibility for rich results.
- Mark up only what is visible. The information in the markup must appear on the page for users to see.
- Be accurate and current. Prices, availability and dates must match the page.
- Be relevant. Do not mark up a page as something it is not, for example describing a category page as a single product.
- Be specific. Use the most appropriate type.
- Be complete. Include all required properties for the type.
- Do not fabricate. No invented reviews, ratings or awards.
Common mistakes
- Syntax errors: a missing comma or quotation mark invalidates the whole block.
- Required properties left out.
- The same markup copied onto every page regardless of its content.
- Prices or stock status in the markup that differ from the page.
- Review markup on pages with no visible reviews.
- Multiple conflicting blocks from different plugins.
- Adding markup and never checking Search Console for errors.
- Expecting rankings to rise because markup was added.
Connecting your markup into one graph
As a site grows, its structured data works best when the separate pieces refer to each other instead of standing alone. Schema.org allows any item to carry an @id, a unique identifier that is usually a URL with a fragment such as https://www.example.com/#organization. Other items can then point to that identifier. An article can name its publisher by referring to the organisation's @id; a service can name its provider the same way; a person can be linked to the company they work for.
The result is a connected description: this article was written by this person, who works for this organisation, which offers these services at this location. Search engines can follow those connections with confidence, where disconnected blocks leave them to work out for themselves whether the "Example Company" on one page is the same as the one on another. Most SEO plugins build such a graph automatically. On a custom site, it is worth asking your developer to define the organisation once on the homepage and reference it everywhere else.
Keeping structured data maintained
Markup is easy to forget once it is live, and it goes out of date in the same ways the rest of a website does. Opening hours change, a phone number is replaced, a product is discontinued, an event passes. Outdated markup is worse than none, because it states the wrong facts with authority. Build a short review into your routine: when business details change, update the markup at the same time as the visible page; after any redesign or plugin change, re-test your main templates; and look at the Enhancements reports in Search Console each month for new errors. Where possible, generate the markup from the same data source as the visible content, so the two cannot drift apart.
Where to begin
- Homepage: Organization, or LocalBusiness if you have premises, with accurate details and
sameAslinks. - All pages: BreadcrumbList.
- Articles: BlogPosting with author and dates.
- Products: Product with Offer.
- Service pages: Service.
- About and team pages: Person.
- Anything specialised: Event, Course, JobPosting, VideoObject as relevant.
Validate each template, then monitor the Enhancements reports monthly.
In summary
Structured data is a relatively small job that makes a website easier for machines to understand and can make its listings more informative. It works best as part of a sound technical foundation, alongside the other checks in the technical SEO audit checklist. Implement it accurately, describe only what is truly on the page, and keep it up to date.
Schema implementation is included in every site I build under my web design service and in my SEO services for existing sites. If you are unsure what your site currently outputs, I am happy to take a look.



