← Module Overview
06 / 10
Topic 06 — Module 1

Schema.org
Markup

Schema = search engine ki language. Jab aap schema use karte ho — Google ko explicitly bata rahe ho: "ye entity hai, ye uske attributes hain, ye uski value hai." Rich snippets ka yahi secret hai.

06.1

Schema kya hota hai?

Schema.org ek vocabulary (dictionary) hai jo Google, Bing, Yahoo aur Yandex ne milke 2011 mein banaya. Is vocabulary mein thousands of "types" aur "properties" defined hain jo aap apni website pe use kar sakte ho.

Pehle wala concept yaad karo — EAV Model (Entity → Attribute → Value). Schema markup exactly yahi karta hai — lekin ek structured, machine-readable format mein. Google seedha padhta hai aur samajhta hai.

📄
Normal HTML
"Mubashir Hassan" — Google guess karta hai ke ye kya hai
🏷️
Schema Markup
"Mubashir Hassan" type: Person, jobTitle: SEO Expert — Google exactly jaanta hai
💡 Simple Definition
Schema markup = aapki website pe hidden code jo Google ko directly bata deta hai: ye page kis entity ke baare mein hai, uski kya properties hain, aur values kya hain. Ye visitor ko nahi dikhta — sirf search engine read karta hai.

Schema use karne ka direct faida: Rich Snippets. Ye woh extra information hai jo Google search results mein aapki listing ke saath show hoti hai — star ratings, price, FAQ accordion, breadcrumbs — ye sab schema ki wajah se possible hote hain.

06.2

Rich Snippets — Visual Difference

Normal search result vs schema-powered rich snippet — dono mein fark dekho:

❌ Without Schema
webhostingpk.com/shared-hosting
Best Shared Hosting Pakistan — WebHostingPK
WebHostingPK offers affordable shared hosting plans in Pakistan with NVMe technology. Starting from Rs.499 per month.
✅ With Schema
webhostingpk.com/shared-hosting
Best Shared Hosting Pakistan — WebHostingPK
★★★★★ 4.8 (127 reviews)
From PKR 499/mo · NVMe SSD · Free SSL
Pakistan ki fastest NVMe hosting. 99.9% uptime guarantee, 24/7 support.

Rich snippet wali listing zyada space leti hai, zyada information show karti hai, aur click-through rate (CTR) dramatically improve hota hai — usually 20–30% more clicks without any ranking change.

FAQ Rich Snippet — Real Preview

Search: "WebHostingPK pricing"

webhostingpk.com
Web Hosting Plans Pakistan — WebHostingPK
Pakistan mein best NVMe web hosting. Shared, VPS aur dedicated plans available.
WebHostingPK ka cheapest plan kya hai?
Basic plan sirf PKR 499/month se start hota hai — NVMe SSD, free SSL, aur 24/7 support ke saath.
Kya Pakistan mein local support available hai?
06.3

Schema ke 3 Formats — Kaunsa Use Karein?

Schema markup 3 formats mein likha ja sakta hai. Google teenon support karta hai — lekin ek clear winner hai:

✅ JSON-LD

JavaScript Object Notation

<script type="application/ld+json"> tag mein HTML se alag rakho. Google officially recommend karta hai. Easy to manage. WordPress plugins easily inject karte hain.

Microdata

HTML Attributes

HTML elements pe directly attributes add karo (itemscope, itemprop). Purana method. HTML aur schema mix hoti hai — maintain karna mushkil. Avoid karein.

RDFa

Resource Description

HTML tags ke andar attributes. Mostly government aur academic sites use karti hain. Regular web projects ke liye usually zaroori nahi.

✅ Recommendation
JSON-LD use karo — hamesha. Google khud JSON-LD prefer karta hai. Ye HTML se alag hota hai, copy-paste karna easy hai, WordPress mein plugin se inject hota hai, aur maintain karna sabse aasaan hai.
06.4

JSON-LD ka Basic Structure

JSON-LD ki structure samjho — ye har schema type mein same rehti hai. Sirf @type aur properties change hoti hain:

JSON-LD — Basic Structure
schema.org
<script type="application/ld+json">
{
  "@context": "https://schema.org",  // hamesha yahi rehga
  "@type": "Organization",         // entity type — ye change hoga
  "name": "WebHostingPK",           // entity ka naam
  "url": "https://webhostingpk.com", // entity ka URL
  "description": "Pakistan ki best NVMe hosting company"
  // ... aur properties add karo
}
</script>

Har JSON-LD script mein yeh do cheezein zaroori hain:

@context

Hamesha "https://schema.org" rehga. Ye Google ko bata hai ke kaunsi vocabulary use ho rahi hai.

@type

Entity ka type — jaise "Organization", "Person", "Product", "FAQPage". Ye hai jo change hota hai.

06.5

Important Schema Types — Kaunse Use Karein?

Schema.org pe 800+ types hain — lekin SEO ke liye mostly yeh types kaam aate hain:

🏢
Organization

Company, brand ya organization ke liye. Knowledge Panel banane mein directly help karta hai.

👤
Person

Individual entity ke liye. Bloggers, consultants, authors — aap bhi ek Person entity hain.

🛍️
Product

E-commerce ke liye. Price, availability, reviews — sab schema mein specify hota hai.

FAQPage

FAQ section ke liye. Google search results mein directly accordion expand hota hai.

📝
Article

Blog posts aur news articles ke liye. Author, publish date, featured image — sab declare karo.

Review

Star ratings search results mein dikhane ke liye. CTR dramatically badh jaata hai.

🎯
Service

Service-based businesses ke liye. Hosting, consulting, digital services — sab ke liye.

🌐
WebSite

Site-wide schema. Sitelinks search box enable karne ke liye home page pe daalo.

🗺️
LocalBusiness

Local businesses ke liye. Address, phone, hours — local SEO ke liye must-have.

06.6

Pakistan Real-World JSON-LD Examples

Ab actual code dekho — ye directly copy-paste karo aur apne business ke hisab se edit karo:

🏢 Example 1 — Organization Schema (WebHostingPK)

Home page pe daalo. Knowledge Panel banane mein help karta hai.

Organization Schema — webhostingpk.com
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "WebHostingPK",
  "alternateName": "WebHostingPK.com",
  "url": "https://webhostingpk.com",
  "logo": "https://webhostingpk.com/logo.png",
  "foundingDate": "2017",
  "founder": {
    "@type": "Person",
    "name": "Mubashir Hassan"
  },
  "description": "Pakistan ki first NVMe web hosting company. Shared hosting, VPS aur domain registration services PKR mein.",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "PK",
    "addressLocality": "Pakistan"
  },
  "contactPoint": {
    "@type": "ContactPoint",
    "contactType": "customer support",
    "availableLanguage": ["Urdu", "English"]
  },
  "sameAs": [
    "https://www.facebook.com/webhostingpk",
    "https://twitter.com/webhostingpk",
    "https://www.linkedin.com/company/webhostingpk"
  ]
}
💡 sameAs — Entity Corroboration
sameAs property exactly wahi kaam karta hai jo humne Topic 02 mein seekha — multiple platforms pe same entity link karna. Google in links se entity verify karta hai aur Knowledge Panel mein show karta hai.

❓ Example 2 — FAQ Schema

Us page pe daalo jahan FAQ section hai. Google search results mein directly accordion show karta hai.

FAQPage Schema
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "WebHostingPK ka cheapest plan kya hai?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Basic plan sirf PKR 499/month se start hota hai — NVMe SSD, free SSL, cPanel aur 24/7 Urdu support ke saath."
      }
    },
    {
      "@type": "Question",
      "name": "Kya Pakistan mein server available hai?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Haan, WebHostingPK ke servers Pakistan ke users ke liye optimized hain aur payment PKR mein accept hoti hai."
      }
    }
  ]
}

🛍️ Example 3 — Product Schema (E-commerce)

Daraz ya kisi bhi e-commerce page ke liye. Star ratings aur price Google search mein directly show hote hain.

Product Schema — Mobile Phone Example
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Samsung Galaxy S24 — Pakistan",
  "brand": {
    "@type": "Brand",
    "name": "Samsung"
  },
  "description": "Samsung Galaxy S24 with Snapdragon 8 Gen 3, 6.2-inch AMOLED display. Official price in Pakistan.",
  "sku": "S24-PK-2025",
  "offers": {
    "@type": "Offer",
    "price": 289999,
    "priceCurrency": "PKR",
    "availability": "https://schema.org/InStock",
    "seller": {
      "@type": "Organization",
      "name": "Daraz.pk"
    }
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.7",
    "reviewCount": "284"
  }
}

👤 Example 4 — Person Schema (SEO Expert / Blogger)

Apni personal website ya "About" page pe daalo. Aap ek entity ho — khud ko establish karo.

Person Schema — mubashirhassan.com
{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "Mubashir Hassan",
  "jobTitle": "Semantic SEO Expert & Serial Entrepreneur",
  "url": "https://mubashirhassan.com",
  "worksFor": {
    "@type": "Organization",
    "name": "WebHostingPK.com"
  },
  "knowsAbout": [
    "Semantic SEO",
    "GEO (Generative Engine Optimization)",
    "Web Hosting Pakistan",
    "WordPress Development",
    "Chrome Extension Development"
  ],
  "nationality": "Pakistani",
  "sameAs": [
    "https://www.youtube.com/@mubashirhassan",
    "https://www.linkedin.com/in/mubashirhassan",
    "https://wordpress.org/support/users/mubashirhassan/"
  ]
}
💡 knowsAbout — Entity ke Contextual Domains
knowsAbout property exactly Topic 05 ka concept use kar rahi hai — ye Google ko bata rahi hai ke Mubashir Hassan kin knowledge domains mein expert hai. Ye GEO (Generative Engine Optimization) ke liye especially important hai — AI engines (ChatGPT, Perplexity) bhi isse read karte hain.
06.7

WordPress mein Schema Kaise Add Karein?

WordPress site pe schema add karne ke 3 main ways hain — sabse easy se sabse advanced tak:

1

Rank Math SEO Plugin (Recommended)

Rank Math automatically bahut sare schema types handle karta hai — Article, FAQ, Product, Person sab. Settings → Schema → Add Schema Type. Free version mein bhi kaafi schema types available hain. WebHostingPK.com ke liye yahi best option hai.

2

Yoast SEO + Schema (Premium)

Yoast premium mein Organization aur Person schema automatically generate hoti hai. Free version mein basic structured data hai lekin limited. Rank Math is comparison mein zyada features free mein deta hai.

3

Manually — functions.php ya Custom Plugin

Jab specific schema chahiye jo koi plugin nahi karta. wp_head action hook use karo aur JSON-LD directly <head> mein inject karo. Advanced users ke liye — but full control milta hai.

WordPress — functions.php mein schema inject karo
// functions.php mein yeh add karo
function webhostingpk_organization_schema() {
  if ( is_home() || is_front_page() ) {
    $schema = [
      '@context' => 'https://schema.org',
      '@type'    => 'Organization',
      'name'     => 'WebHostingPK',
      'url'      => 'https://webhostingpk.com',
      'foundingDate' => '2017',
    ];
    echo '<script type="application/ld+json">'
      . wp_json_encode( $schema )
      . '</script>';
  }
}
add_action( 'wp_head', 'webhostingpk_organization_schema' );
06.8

Schema Test aur Validate Kaise Karein?

Schema add karne ke baad hamesha test karo. Galat schema se koi faida nahi — aur kabhi kabhi Google penalty bhi de sakta hai agar schema aur actual page content match na karein.

🔍

Google Rich Results Test

Official Google tool. Page URL paste karo ya schema code directly paste karo. Batata hai ke kaunse rich snippets eligible hain.

search.google.com/test/rich-results
🛠️

Schema.org Validator

Official schema.org validator. JSON-LD errors aur warnings show karta hai. Typos aur missing required properties catch karta hai.

validator.schema.org

Common Schema Mistakes — Avoid Karo

Fake reviews: Schema mein 5-star rating daala lekin page pe real reviews nahi hain — Google penalty deta hai
Content mismatch: Schema mein jo hai woh page pe visible nahi — hamesha schema page ke visible content se match kare
Wrong type: Product page pe Article schema — @type hamesha page ke actual content se match karna chahiye
Best practice: Har page ka schema us page ke content se 100% match kare — entity, attributes, aur values sab accurate hon
06.9

Schema = EAV Model ka Machine Version

Ab poora circle complete karte hain. Topic 03 mein EAV Model (Entity → Attribute → Value) seekha tha. Schema markup exactly usi concept ka machine-readable implementation hai:

EAV Concept
Schema JSON-LD
Entity: WebHostingPK
"name": "WebHostingPK"
Type: Organization
"@type": "Organization"
Attribute: Founded
"foundingDate": "2017"
Value: 2017
"2017"
Associations: Founder
"founder": { "@type": "Person", "name": "..." }

EAV model ko samajh liya — schema automatically zyada aasaan lagta hai. Dono same cheez hain — ek human ke liye, ek machine ke liye.

🎯 Final Takeaway — Schema Markup
Schema = search engine ki native language. Jab aap schema add karte ho: (1) Entity clearly declare hoti hai, (2) Attributes explicitly define hote hain, (3) Associations establish hote hain, (4) Rich snippets possible hote hain, (5) Knowledge Panel chances badhte hain. Ye Semantic SEO ka practical implementation tool hai.
06.10

Apni Site ke liye Action Plan — Kal Se Start Karo

1

Home Page — Organization ya Person Schema

Sabse pehle apni site ka basic identity declare karo. Organization hai toh Organization schema, personal blog hai toh Person schema. Rank Math se 5 minutes mein ho jaata hai.

2

Har Blog Post — Article Schema

Author, publish date, modified date, featured image — sab declare karo. Google News aur Discover ke liye bhi important hai. Rank Math automatically handle karta hai.

3

FAQ Pages/Sections — FAQPage Schema

Jis bhi page pe FAQ section hai — FAQPage schema add karo. Direct search results mein accordion expand hona = massive CTR boost.

4

Service Pages — Service Schema

Hosting plans, consulting services, freelance services — har service page pe Service schema. Price aur offer information include karo jahan possible ho.

5

Test aur Monitor karo

Rich Results Test se verify karo. Google Search Console mein "Enhancements" section check karo — schema errors wahan show hote hain. Monthly audit karo.

🎉

Module 1 — Complete!

Aap ne Semantic SEO ka full foundation cover kar liya — Lexical vs Semantic, Entity Anatomy, EAV Model, Triples, Knowledge Domains, aur Schema Markup. Ab implementation time hai.

✓ Semantic Search ✓ Entity Anatomy ✓ EAV Model ✓ Knowledge Graph ✓ Contextual Domains ✓ Schema Markup