Skip to content
+91 89607 57615
Code Craft — web development and digital marketing
Lesson 1024 min

Structured data for local businesses

Describe your business in JSON-LD so Google understands its name, address and hours, and test it properly.

Taught by Sandesh Sahetiya

The video is part of the full course

In this lesson you will

  • Explain what structured data is and isn't
  • Write LocalBusiness JSON-LD with the required properties
  • Add opening hours correctly
  • Test markup with the Rich Results Test

Structured data is a standard way of describing a page's content in code, using the schema.org vocabulary. Google recommends JSON-LD: a block of JSON in a script tag. For a local business it can help Google show details like opening hours, and it ties your website to the business it describes.

The practice site's markup

site-before/index.html · lines 8–15Download
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Bakery",
    "name": "Sunrise Bakery",
    "telephone": "+91 98765 43210"
  }
  </script>

Google's LocalBusiness documentation lists two required properties: name and address. The address is missing, so the audit reports an error.

Continue with the full course

The rest of this lesson, the narrated video, the PDF and the exercise are part of SEO Fundamentals: On-page, Technical and Local. One payment, lifetime access.

Already bought it? Sign in with the email you paid with.