Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy
HTML

HTML: Implement Microdata for Semantic Web

- 07.07.26 - ErcanOPAK

🔍 Microdata = Semantic Web

Search engines understand structure. Microdata adds semantic meaning. Rich snippets, better SEO, enhanced search results.

📝 Microdata Basics

<!-- Schema.org Vocabulary -->
<div itemscope itemtype="http://schema.org/Product">
    <span itemprop="name">Product Name</span>
    <img itemprop="image" src="product.jpg" alt="Product">
    <span itemprop="description">Product description...</span>
    <span itemprop="sku">SKU-123</span>
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
        <span itemprop="price" content="99.99">$99.99</span>
        <span itemprop="priceCurrency" content="USD">USD</span>
        <link itemprop="availability" href="http://schema.org/InStock" />
    </div>
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
        <span itemprop="ratingValue" content="4.5">4.5</span>
        <span itemprop="reviewCount" content="120">120 reviews</span>
    </div>
</div>

🎯 Common Schema Types

<!-- Person -->
<div itemscope itemtype="http://schema.org/Person">
    <span itemprop="name">John Doe</span>
    <span itemprop="jobTitle">Software Developer</span>
    <span itemprop="email">john@example.com</span>
    <span itemprop="telephone">+1-123-456-7890</span>
    <a itemprop="url" href="https://example.com">Website</a>
</div>

<!-- Article -->
<div itemscope itemtype="http://schema.org/Article">
    <h1 itemprop="headline">Article Title</h1>
    <time itemprop="datePublished" datetime="2024-01-15">Jan 15, 2024</time>
    <span itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">John Doe</span>
    </span>
    <div itemprop="articleBody">Article content...</div>
    <img itemprop="image" src="article.jpg" alt="Article image">
</div>

<!-- Organization -->
<div itemscope itemtype="http://schema.org/Organization">
    <span itemprop="name">Company Name</span>
    <span itemprop="description">Company description...</span>
    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
        <span itemprop="streetAddress">123 Main St</span>
        <span itemprop="addressLocality">New York</span>
        <span itemprop="addressRegion">NY</span>
        <span itemprop="postalCode">10001</span>
    </div>
</div>

💡 Benefits

  • Rich snippets in search results
  • Better SEO ranking
  • Enhanced search appearance
  • Social sharing previews
  • Better accessibility

“Microdata adds meaning to web content. Better SEO, rich snippets. Essential for modern web.”

— SEO Specialist

Related posts:

HTML5 Forms: The Built-In Validation That Replaced jQuery Validate

HTML5 Forms: The Built-In Validation That Replaced jQuery Validate

HTML: Use Autofocus Attribute to Focus Input on Page Load

HTML: Use Autofocus Attribute to Focus Input on Page Load

HTML5: Fix a Native input type=date Picker Displaying a Different Format Than What You're Actually S...

HTML5: Fix a Native input type=date Picker Displaying a Different Format Than What You're Actually S...

Views: 8

Post navigation

CSS: Master Animations with Keyframes and Transitions
JavaScript: Use ES6 Modules for Organized Code

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (661)
  • Add Constraint to SQL Table to ensure email contains @ (619)
  • Average of all values in a column that are not zero in SQL (577)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (553)
  • Find numbers with more than two decimal places in SQL (481)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store
  • WordPress: Fix a Navigation Block Losing Submenu Items After Sync
  • Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers
  • C#: Fix a UTF-8 String Literal Behaving Differently in a Switch
  • Photoshop: Fix a Liquify Mesh Snapping Back on a Smart Object
  • The AI Prompt That Turns a Crash Dump Into a Short Repro Script

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com