★ 5.0 on Google · No long contracts · You own every asset
Rathly

What is Schema markup, and when is it useful?

Short answer

Schema markup is code that tells search engines exactly what each page describes. Typical facts are your business, services, address, hours and reviews. A well-built site generates it from the same data that fills the pages, so it stays accurate when content changes.

In this answer
  1. 01Schema from a web design point of view
  2. 02Generate it from your content
  3. 03Markup by page type
  4. 04Test it

Schema from a web design point of view

Our SEO answer on schema markup covers what schema does in search. This answer covers how to build it into a website so it stays right.

The common mistake is pasting a block of markup into a page by hand. Months later the hours change, the phone number changes or a service ends, and the markup still says the old thing. Google's guidelines ask that markup match what visitors see, so stale markup is a problem.

Generate it from your content

How markup stays in sync
  1. One sourceHours, phone, prices and services live in the CMS.
  2. TemplatesEach page type builds its own markup from that data.
  3. PublishEvery content change updates the page and its markup.

Markup by page type

Page typeMarkup it should carry
HomepageOrganization and WebSite
Office or location pageLocalBusiness with address, geo, hours and phone
Service pageService with area served and price details
Article or answerArticle with author, dates and publisher
Every inner pageBreadcrumbList

Google recommends JSON-LD, a separate block of code that does not touch the visible design.

Good example. A medical practice changes its Saturday hours in the CMS. The office page, the footer and the LocalBusiness markup all update together.

Bad example. The same practice edits its hours on the page, but the hand-pasted markup still lists the old schedule for a year.

Test it

Check each template in Google's Rich Results Test and watch the structured data reports in Search Console after launch. Google does not guarantee rich results, even for valid markup.

Rathly.com builds its markup this way, including holiday closures for each office. Our web design team sets up the same system for every client site.

Keep reading

Related answers

All Web design questions →

Your agency isn't delivering? Talk to us.

  • ✓ You talk to the people who do the work
  • ✓ We handle 95% of requests the same or next day
  • ✓ You own every account, site and listing
Talk to usSTEP 1 OF 2
What isn't working?
No contract. Cloudflare Turnstile blocks spam.
Call usTalk to us →