SkillByAIइंटरैक्टिव संस्करण खोलें →

पाठ 9 / 34

Schema.org संरचित डेटा

JSON-LD और माइक्रोडेटा का उपयोग करके कंटेंट को मार्क अप करें और सर्च इंजन को समझने में मदद करें।

संरचित डेटा क्या है?

Structured data aisa markup hai jo search engines ko aapke content ka exact meaning batata hai. Sirf "John Doe — 5 stars" padhne ki jagah Google ko dikhta hai: Person name="John Doe", Rating=5. Isse rich snippets, knowledge panels aur behtar ranking milti hai.

JSON-LD उदाहरण: लेख

JSON-LD structured data ka preferred format hai. Yeh <head> mein jata hai aur page content ko clearly describe karta hai.

<head>
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Article",
    "headline": "Mastering HTTP Status Codes",
    "description": "A developer's guide to understanding HTTP status codes and when to use them.",
    "image": "https://example.com/http-codes.jpg",
    "datePublished": "2025-10-01",
    "dateModified": "2025-10-15",
    "author": {
      "@type": "Person",
      "name": "Jane Developer",
      "url": "https://example.com/author/jane"
    },
    "publisher": {
      "@type": "Organization",
      "name": "Tech Blog",
      "logo": {
        "@type": "ImageObject",
        "url": "https://example.com/logo.png"
      }
    },
    "mainEntityOfPage": {
      "@type": "WebPage",
      "@id": "https://example.com/http-codes"
    }
  }
  </script>
</head>

JSON-LD उदाहरण: उत्पाद

E-commerce sites par products ko ratings, prices aur availability ke saath markup karein. Isse Google Shopping integration aur rich snippets milte hain.

<head>
  <script type="application/ld+json">
  {
    "@context": "https://schema.org/",
    "@type": "Product",
    "name": "Mechanical Keyboard RGB",
    "image": "https://example.com/keyboard.jpg",
    "description": "Premium mechanical keyboard with RGB lighting",
    "brand": {
      "@type": "Brand",
      "name": "KeyMaster"
    },
    "offers": {
      "@type": "Offer",
      "url": "https://example.com/products/keyboard",
      "priceCurrency": "USD",
      "price": "129.99",
      "availability": "https://schema.org/InStock"
    },
    "aggregateRating": {
      "@type": "AggregateRating",
      "ratingValue": "4.5",
      "bestRating": "5",
      "worstRating": "1",
      "ratingCount": "248"
    }
  }
  </script>
</head>

अपने मार्कअप को मान्य करें

Structured data ko hamesha Schema.org validator ya Google ke Rich Results Test se validate karein. Invalid markup ignore ho jata hai; valid markup se rich snippets milte hain.