New: free AI visibility scan for law firms.Results in minutesRun yours →
  1. Home
  2. Glossary
  3. Schema Markup
Glossary · Technical

Schema Markup

Updated 2026-11-13

Definition

Schema markup is structured data added to a web page's code that tells search engines and AI tools exactly what the page describes: a law firm, an attorney, an FAQ, an article.

What it does

A contact page that says “Rivera Family Law, 210 Congress Ave, Austin” is clear to a person. A machine reading the same page has to work out which words are the firm’s name, which are the address, and whether the phone number in the footer belongs to the firm or to a referral partner. Schema markup removes that guesswork. It restates the page’s key facts in a shared vocabulary (schema.org), usually as a small block of JSON-LD code in the page’s HTML that visitors never see.

It does not add new information. It labels information that is already on the page, so that search engines and other software can read it without interpreting the layout.

example.com/contact/

Contact our Austin office

2Office210 Congress Ave, Suite 300
Austin, TX 78701
3Phone(512) 555-0142
4HoursMonday to Friday, 8:30 am to 5:30 pm
5Who we helpFamilies across Travis County, Texas
✕★ 4.9 · 120 reviews widgetLeft out on purpose: Google does not show review stars for reviews a business publishes about itself.
<script type="application/ld+json">
  1. {
  2. "@context": "https://schema.org",
  3. T"@type": "LegalService",
  4. "@id": "https://www.example.com/#firm",
  5. 1"name": "Rivera Family Law",
  6. 2"address": {
  7. "@type": "PostalAddress",
  8. "streetAddress": "210 Congress Ave, Suite 300",
  9. "addressLocality": "Austin",
  10. "addressRegion": "TX",
  11. "postalCode": "78701"
  12. },
  13. 3"telephone": "+1-512-555-0142",
  14. 4"openingHours": "Mo-Fr 08:30-17:30",
  15. 5"areaServed": "Travis County, Texas"
  16. }
FigureThe facts a visitor sees on a contact page, and the JSON-LD lines that state the same facts. The review widget is deliberately left out of the markup. Fictional firm.

Why a law firm should care

Google says structured data helps its systems understand a page, and some types make a page eligible for richer search results such as breadcrumbs. For local businesses it reinforces the same name, address and phone details that Google reads from your Business Profile and directories.

The link to AI answers is less direct, and it is worth being honest about it. Most AI assistants do not publish how they use structured data. What is clear is that assistants which search the web (ChatGPT search, Perplexity, Google’s AI Overviews) often rely on search indexes and on pages they fetch, and markup that matches the page and the rest of the web makes your firm’s details easier to read correctly. Treat schema as a way to remove ambiguity, not as a lever that gets you named. The things that tend to get firms named are reviews, directory profiles, clear answer pages and mentions in sources the assistants cite. See AI citations.

Types worth using at a law firm

Type Where What it states
LegalService Home page (or contact page) Firm name, address, phone, hours, area served
Person Attorney bio pages Name, job title, the firm they work for, education
Service Practice area pages The service and which firm provides it
FAQPage Pages with a real, visible Q&A section The questions and answers shown on the page
Article Guides and explainers Title, author, publisher, date published or updated
BreadcrumbList Every page Where the page sits in the site

One trap: schema.org has a type called Attorney, but it describes a law office, not a lawyer, and schema.org marks it as superseded by LegalService. For an individual lawyer’s bio, use Person.

A note on FAQPage: Google now shows FAQ rich results only for a small set of authoritative government and health sites, so the markup will not earn a law firm the expanded search listing it once did. It still describes the page accurately, which is reason enough to keep it where the Q&A is real.

How the pieces fit together

On a well-built site the firm is described once, in full, and every other page points to that description instead of repeating it. Schema does this with an @id: a stable identifier, usually the home page URL plus a fragment such as #firm.

#firmRivera Family LawLegalService · defined once, on the home page
#anaAna RiveraPerson · defined once, on her bio
  • Home/
    LegalServiceWebSitedefines #firm
  • Attorney bio/attorneys/ana-rivera/
    Persondefines #anaworksFor → #firm
  • Practice page/divorce/
    Serviceprovider → #firm
  • Page with a Q&A section/divorce/cost/
    FAQPage
  • Guide/guides/texas-custody/
    Articleauthor → #anapublisher → #firm
  • Every pagesitewide
    BreadcrumbListHome › Divorce › Cost
Type on the pageFull description lives herePoints to it instead of repeating it
FigureWhich type goes on which page of a small firm's site. The firm and the attorney are each described once; other pages point to them by @id. Fictional firm.

An attorney bio then looks like this. The worksFor line refers to the firm by its @id, so the address and phone are not duplicated (and cannot drift out of sync).

{
  "@context": "https://schema.org",
  "@type": "Person",
  "@id": "https://www.example.com/attorneys/ana-rivera/#ana",
  "name": "Ana Rivera",
  "jobTitle": "Founding Attorney",
  "worksFor": { "@id": "https://www.example.com/#firm" },
  "alumniOf": "The University of Texas School of Law",
  "url": "https://www.example.com/attorneys/ana-rivera/"
}

Adding it, step by step

  1. Start from your canonical firm details. The same name, address, phone and hours you use on Google Business Profile and the directories. See NAP consistency.
  2. Add LegalService to the home page with an @id. If the firm has several offices, give each office its own LegalService block on its own location page.
  3. Add Person to each attorney bio, pointing to the firm with worksFor.
  4. Add Article to guides, with the author pointing to the attorney who wrote or reviewed it.
  5. Add FAQPage only where the questions and answers are visible on the page.
  6. Validate, then compare the markup with the page by hand (next section).
  7. Put it on the checklist for every change. New phone system, new hours, new partner: the markup changes too.

Many website platforms used by law firms either generate some markup automatically or accept a plugin that does. Check what is already there before adding more: two conflicting LegalService blocks on one page are worse than one.

How to check it

Two free tools cover the code: Google’s Rich Results Test (what Google can use) and the Schema Markup Validator at validator.schema.org (whether the markup follows the vocabulary). Neither can tell you whether the facts are right.

Automated validatorPasses
  • JSON-LD parses without errors
  • LegalService type recognized
  • Address has the expected properties
  • Breadcrumbs valid on 42 of 42 pages

Checks that the code is well formed. It cannot know your phone number changed.

Checked by a person3 problems
  • Phone matches the pageMarkup +1-512-555-0142, page shows (512) 555-0199 since the new phone system.
  • Hours are currentMarkup still lists Saturday mornings, dropped in the spring.
  • Address matches Google Business ProfileSame suite number, same format.
  • FAQ markup matches visible textTwo questions in the markup no longer appear on the page.
  • Attorney names match bar recordsChecked for all four lawyers.

Compares the markup with the visible page and the firm's listings. This is where wrong facts are caught.

FigureA markup review in two halves. The validator passes; a person comparing the markup with the page and the listings finds three wrong facts. Example data.

Wrong but valid markup is a common problem: a phone number from before the switch to a new system, hours from last year, FAQ answers that were edited on the page but not in the code.

Common mistakes

  • Marking up what is not on the page. Reviews, awards or answers the visitor cannot see break Google’s guidelines and can lead to a manual action.
  • Self-serving review markup. Google does not show star ratings for reviews a local business publishes about itself.
  • “Specialist” and award claims in the markup. The markup is advertising too. State bar rules on certifications and comparative claims vary; the same rules apply to code as to visible copy.
  • Copying a template and forgetting a field. A placeholder city or an old suite number in the template ends up on every page.
  • Using Attorney for a person. Use Person.
  • Set and forget. Markup goes stale exactly when the firm changes, which is when it matters most.

When it matters less

If your site has a clear contact page, consistent details across the web and a platform that already outputs basic LegalService and breadcrumb markup, adding more types will not change much. Schema rarely moves results on its own. It is housekeeping that keeps the rest of your work from being misread.

What to ask a vendor

Ask which types they will add and on which pages, whether they use @id references or repeat the firm’s details on every page, who updates the markup when details change, and how they check it beyond the validator. A vendor who promises that schema will “get you into AI answers” is promising more than anyone can deliver.

To see whether the assistants already describe your firm correctly, a free AI visibility scan shows what they say for your practice and city.

Measure it on your own firm

A free scan asks ChatGPT, Gemini and Perplexity the questions your clients ask, and shows who they name instead of you.

Run a free scan