🔍 Module 12 · SEO🔴 AdvancedLESSON 42 · MODULE FINAL
Structured Data (JSON-LD)
Course progress26%
🎯 What you'll learn: What Schema.org and JSON-LD are, how to embed structured data in a
<script> tag, and how it unlocks Google's rich results.
Section 1
What Is Structured Data?
Structured data is machine-readable markup that explicitly labels what your content means — "this number is a price," "this text is an author name" — using a shared vocabulary from Schema.org. Search engines use it to build rich results: star ratings, prices, FAQ dropdowns, course cards, directly in search listings.
Section 2
JSON-LD in a script Tag
JSON-LD is the format Google recommends. It lives in a <script type="application/ld+json"> block — completely separate from your visible HTML, so it can't accidentally break your layout.
json-ld-article.html
HTML
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "How Semantic HTML Improves SEO", "author": { "@type": "Person", "name": "Irfana Aslam" }, "datePublished": "2026-01-15" } </script>
⚠️
It must be valid JSON
A single missing comma or stray trailing comma breaks the entire block silently — always validate it before publishing.
Section 3
Common Schema Types
| @type | Used for |
|---|---|
| Article | Blog posts, news articles |
| Course | Educational course pages (like this one!) |
| Product | E-commerce product listings with price/availability |
| FAQPage | FAQ sections — enables expandable Q&A in search results |
| Organization | Company/brand identity information |
json-ld-course.html
HTML
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Course", "name": "Advanced HTML Mastery", "provider": { "@type": "Organization", "name": "BitWithBite" }, "isAccessibleForFree": true } </script>
Section 4
Verifying It Works
Google provides a free Rich Results Test tool that parses your page and shows exactly which rich result types it detects (or which errors block them). Always test structured data before assuming it's correct.
🧩 Knowledge Check — Lesson 42
5 questions to test your understanding.
1. What vocabulary does structured data typically use?
2. Where does JSON-LD structured data live in the HTML?
3. What happens if the JSON in a JSON-LD block has a syntax error?
4. Which @type would you use for an FAQ section?
5. What tool can you use to verify your structured data works?
Coding Challenge — Lesson 42
Apply what you learned · Advanced Level
Challenge: Add Article Structured Data
Write a JSON-LD script block of @type "Article" for a blog post titled "10 HTML Tags You Never Knew Existed", published 2026-02-01, authored by a Person named "Irfana Aslam".
Write a JSON-LD script block of @type "Article" for a blog post titled "10 HTML Tags You Never Knew Existed", published 2026-02-01, authored by a Person named "Irfana Aslam".
💡 Show hints if you're stuck
- Required keys: @context, @type, headline, author, datePublished.
✅
Module 12 Complete!
You can now write proper SEO meta tags and structured data. Next up: HTML5 APIs — starting with Data Attributes.
Finished this lesson?
Mark it complete to track your progress.
Lesson 42 of 62Final Lesson — Module 12