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.
Contact our Austin office
Austin, TX 78701
{"@context": "https://schema.org",- T
"@type": "LegalService", "@id": "https://www.example.com/#firm",- 1
"name": "Rivera Family Law", - 2
"address": { "@type": "PostalAddress","streetAddress": "210 Congress Ave, Suite 300","addressLocality": "Austin","addressRegion": "TX","postalCode": "78701"},- 3
"telephone": "+1-512-555-0142", - 4
"openingHours": "Mo-Fr 08:30-17:30", - 5
"areaServed": "Travis County, Texas" }
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.
- 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 pagesitewideBreadcrumbListHome › Divorce › Cost
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
- 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.
- Add
LegalServiceto the home page with an@id. If the firm has several offices, give each office its ownLegalServiceblock on its own location page. - Add
Personto each attorney bio, pointing to the firm withworksFor. - Add
Articleto guides, with the author pointing to the attorney who wrote or reviewed it. - Add
FAQPageonly where the questions and answers are visible on the page. - Validate, then compare the markup with the page by hand (next section).
- 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.
- ✓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.
- !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.
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
Attorneyfor a person. UsePerson. - 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.
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