Skip to main content
InterviewHubPRO
Section Overview
Q28

Question 28 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

56%
HTML5 & Web APIs (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Structured Data for SEO: JSON-LD, Microdata, and Schema.org.

senior LevelCode ExampleSystem Design

In Simple Words: Search engines use structured data to display Rich Snippets (star ratings, event dates, pricing, recipe cooking times):

  • JSON-LD (Google's Recommended Standard): Embedded inside a <script type="application/ld+json"> tag in the <head>:
html
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "High-Performance Mechanical Keyboard",
  "image": "https://example.com/keyboard.jpg",
  "offers": {
    "@type": "Offer",
    "price": "149.99",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}
</script>