Skip to content

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 “Broken Autofill Styles” — Chrome’s Yellow Background Bug

HTML5 — Improves Accessibility AND Click Area

HTML5 Lazy Loading Images — Zero-Effort Performance Gains

Post Views: 2

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 *

July 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Jun    

Most Viewed Posts

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

Recent Posts

  • C#: Use Using Statements for Resource Management
  • C#: Use Lambda Expressions for Concise Code
  • SQL: Use GROUP BY for Data Aggregation
  • .NET Core: Master Routing for Clean URLs
  • Git: Use Reset to Undo Local Changes
  • Ajax: Use Axios for HTTP Requests
  • JavaScript: Understand Hoisting
  • HTML: Use Web Storage for Client-Side Data
  • CSS: Use Filter Effects for Visual Magic
  • Windows 11: Unlock God Mode for All Settings

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (960)
  • How to add default value for Entity Framework migrations for DateTime and Bool (898)
  • How to make theater mode the default for Youtube (857)
  • Get the First and Last Word from a String or Sentence in SQL (840)
  • How to select distinct rows in a datatable in C# (814)

Recent Posts

  • C#: Use Using Statements for Resource Management
  • C#: Use Lambda Expressions for Concise Code
  • SQL: Use GROUP BY for Data Aggregation
  • .NET Core: Master Routing for Clean URLs
  • Git: Use Reset to Undo Local Changes

Social

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