Contoh Structure Data Schema Microdata

Microdata adalah spesifikasi HTML WHATWG yang digunakan untuk membuat sarang metadata dalam konten yang ada di halaman web.
Microdata menggunakan kosakata pendukung untuk menggambarkan pasangan item dan nama-nilai untuk menetapkan nilai ke propertinya.
Microdata adalah upaya untuk menyediakan cara yang lebih sederhana untuk menganotasi elemen HTML dengan tag yang dapat dibaca mesin daripada pendekatan serupa dalam menggunakan RDFa dan Microformats.

Mesin pencari, perayap web, dan peramban dapat mengekstraksi dan memproses Microdata dari halaman web dan menggunakannya untuk memberikan pengalaman penelusuran yang lebih kaya bagi pengguna. 
Mesin pencari mendapat manfaat besar dari akses langsung ke data terstruktur ini karena memungkinkan mereka untuk memahami informasi di halaman web dan memberikan hasil yang lebih relevan bagi pengguna.

Contoh Schema Microdata

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>Microdata example - blog article</title>
</head>

<body itemscope itemtype="https://schema.org/WebPage">
<!-- Accessibility levels -->
  <meta itemprop="accessibilityControl" content="fullKeyboardControl">
  <meta itemprop="accessibilityControl" content="fullMouseControl">
  <meta itemprop="accessibilityHazard" content="noFlashingHazard">
  <meta itemprop="accessibilityHazard" content="noMotionSimulationHazard">
  <meta itemprop="accessibilityHazard" content="noSoundHazard">
  <meta itemprop="accessibilityAPI" content="ARIA">

<!-- Header -->
  <header itemscope itemtype="https://schema.org/Organization">
    <h2 itemprop="name">
      <a rel="home" itemprop="url" href="#">ExampleCorp Ltd</a>
    </h2>
    <meta itemprop="logo" content="https://example.com/img/examplecorp-logo.png">
    <ul>
      <li>
        <a rel="external" itemprop="sameAs" href="#">Follow us on Facebook</a>
      </li>
      <li>
        <a rel="external" itemprop="sameAs" href="#">Follow us on LinkedIn</a>
      </li>
      <li>
        <a rel="external" itemprop="sameAs" href="#">Follow us on Twitter</a>
      </li>
    </ul>
    <p itemprop="telephone">+44 (0)0000 000000</p>
  </header>

<!-- Navigation -->
  <nav aria-label="Navigation" itemscope itemtype="https://schema.org/SiteNavigationElement">
    <ul>
      <li>
        <a itemprop="url" href="#">Products</a>
      </li>
      <li>
        <a itemprop="url" href="#">Services</a>
      </li>
      <li>
        <a itemprop="url" href="#">About</a>
      </li>
      <li>
        <a itemprop="url" href="#">Contact</a>
      </li>
    </ul>
  </nav>

  <main aria-label="Main content" itemscope itemtype="https://schema.org/Blog">

<!-- Breadcrumbs -->
    <nav aria-label="Breadcrumb navigation">
      <ol itemscope itemtype="https://schema.org/BreadcrumbList">
        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
          <a itemprop="item" href="#"><span itemprop="name">Home</span></a>
          <meta itemprop="position" content="1">
        </li>
        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
          <a itemprop="item" href="#"><span itemprop="name">Blog</span></a>
          <meta itemprop="position" content="2">
        </li>
        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
          <a itemprop="item" href="#"><b itemprop="name">Blog article title</b></a>
          <meta itemprop="position" content="3">
        </li>
      </ol>
    </nav>

<!-- Article -->
    <article itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
      <meta itemprop="mainEntityOfPage" content="url-of-this-article.html">

      <h1 itemprop="name headline">Blog article title</h1>

      <p>
        <time datetime="2015-03-26T10:43:39Z" itemprop="datePublished">26 Mar 2015</time>
        <meta itemprop="dateModified" content="2019-04-11T12:52:01Z">
      </p>

      <figure itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
        <img itemprop="url contentUrl" alt="Alt text" src="https://hive-framework.philwareham.co.uk/mockups/img/640x320.png">
        <meta itemprop="width" content="640">
        <meta itemprop="height" content="320">
        <figcaption itemprop="caption">An example image caption.</figcaption>
      </figure>

      <div itemprop="description">
        <p><strong>Ex graeci civibus eleifend vim, mel et utroque fastidii.</strong></p>
      </div>

      <div itemprop="articleBody">
        <p>Lorem ipsum dolor sit amet, quo epicuri volutpat no. Causae option accusamus in est.</p>
        <p itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
          <img itemprop="url contentUrl" alt="Alt text" src="https://hive-framework.philwareham.co.uk/mockups/img/640x320.png">
          <meta itemprop="width" content="640">
          <meta itemprop="height" content="320">
        </p>
        <h3>Ne sea soluta voluptatum</h3>
        <p>Timeam mentitum an nam. Mei ne prima perfecto adversarium.</p>
        <p itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
          <img itemprop="url contentUrl" alt="Alt text" src="https://hive-framework.philwareham.co.uk/mockups/img/640x320.png">
          <meta itemprop="width" content="640">
          <meta itemprop="height" content="320">
        </p>
        <p>Inermis indoctum vis in, has soleat complectitur te.</p>
        <div itemprop="video" itemscope itemtype="https://schema.org/VideoObject">
          <video controls poster="https://hive-framework.philwareham.co.uk/video/big_buck_bunny.jpg">
            <source itemprop="contentUrl" type="video/mp4" src="https://hive-framework.philwareham.co.uk/video/big_buck_bunny.mp4">
            <source itemprop="contentUrl" type="video/webm" src="https://hive-framework.philwareham.co.uk/video/big_buck_bunny.webm">
            I’m sorry, your browser doesn’t support HTML5 video in MP4 with H.264 or WebM with VP8/VP9.
          </video>
          <p><small>Video copyright 2008, Blender Foundation / www.bigbuckbunny.org.</small></p>
          <meta itemprop="name" content="Video example">
          <meta itemprop="description" content="An example HTML5 video file.">
          <meta itemprop="duration" content="T60S">
          <meta itemprop="uploadDate" content="2018-09-21T10:44:26Z">
          <meta itemprop="thumbnailUrl" content="https://hive-framework.philwareham.co.uk/video/big_buck_bunny.jpg">
        </div>
        <div itemprop="audio" itemscope itemtype="https://schema.org/AudioObject">
          <audio controls>
            <source itemprop="contentUrl" type="audio/mp3" src="https://hive-framework.philwareham.co.uk/audio/moonlight_reprise.mp3">
            <source itemprop="contentUrl" type="audio/ogg; codecs=vorbis" src="https://hive-framework.philwareham.co.uk/audio/moonlight_reprise.ogg">
            I’m sorry, your browser doesn’t support HTML5 audio.
          </audio>
          <meta itemprop="name" content="Audio example">
          <meta itemprop="description" content="An example HTML5 audio file.">
          <meta itemprop="duration" content="T181S">
          <meta itemprop="uploadDate" content="2018-09-21T10:48:03Z">
          <p><small>“Moonlight Reprise” from “Irsen’s Tale” by Kai Engel. License: <a rel="external" href="https://creativecommons.org/licenses/by-nc/3.0/">Attribution-NonCommercial 3.0 International License</a>.</small></p>
        </div>
      </div>

      <footer>
        By:
        <span itemprop="author" itemscope itemtype="https://schema.org/Person">
          <a rel="author" itemprop="url" href="#" title="View author biography">
            <span itemprop="name">Aaron A. Aardvark</span>
          </a>
          <meta itemprop="jobTitle" content="Director">
          <meta itemprop="worksFor" content="ExampleCorp Ltd">
        </span>
        <span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
          <meta itemprop="name" content="ExampleCorp Ltd">
          <span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
            <meta itemprop="url" content="https://example.com/img/examplecorp-logo.png">
            <meta itemprop="width" content="320">
            <meta itemprop="height" content="60">
          </span>
        </span>
        <span role="separator">|</span>
        Tags:
        <span itemprop="keywords">
          <a rel="category tag" href="#" title="View articles in this category">Curla Wurla</a>
          <a rel="category tag" href="#" title="View articles in this category">Huly Hoops</a>
        </span>
        <span role="separator">|</span>
        Comments:
        <a href="#" title="View article comments" itemprop="discussionUrl">
          <span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
            <meta itemprop="interactionType" content="https://schema.org/CommentAction">
            <span itemprop="userInteractionCount">3</span>
          </span>
        </a>
      </footer>

      <aside itemscope itemtype="https://schema.org/WPAdBlock">
        <h6>Advertisements</h6>
        <a rel="external" href="ad-target-1.html" itemprop="url">
          <img itemprop="image" alt="Ad Example 1" src="https://hive-framework.philwareham.co.uk/mockups/img/300x250.png" width="300" height="250">
        </a>
        <a rel="external" href="ad-target-2.html" itemprop="url">
          <img itemprop="image" alt="Ad Example 2" src="https://hive-framework.philwareham.co.uk/mockups/img/300x250.png" width="300" height="250">
        </a>
      </aside>

      <section>
        <h3>Comments</h3>
        <ol>
          <li>
            <article itemscope itemtype="https://schema.org/Comment">
              <h4 itemprop="author" itemscope itemtype="https://schema.org/Person">
                <span itemprop="name">Joe Q. Public</span>
              </h4>
              <p>
                <time datetime="2015-01-26T16:55:03Z" itemprop="dateCreated">26/03/15 16:55</time>
              </p>
              <div itemprop="text">
                <p>Inermis indoctum vis in, has soleat complectitur te.</p>
              </div>
            </article>
          </li>
        </ol>
      </section>

    </article>

  </main>

<!-- Secondary Content -->
  <aside>

    <section itemscope itemtype="https://schema.org/WebSite">
      <h3>Search</h3>
      <meta itemprop="url" content="https://example.com/">
      <form itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
        <meta itemprop="target" content="https://example.com/?q={q}">
        <input itemprop="query-input" name="q" type="search">
        <button>Go</button>
      </form>
    </section>

    <section>
      <h3>Latest blog articles</h3>
      <ol>
        <li>
          <article itemscope itemtype="https://schema.org/BlogPosting">
            <h4 itemprop="name headline">
              <a itemprop="mainEntityOfPage url" href="#">Blog example title 1</a>
            </h4>
            <meta itemprop="author" content="Aaron A. Aardvark">
            <meta itemprop="datePublished" content="2015-03-23T15:54:12Z">
            <meta itemprop="dateModified" content="2016-01-11T10:24:25Z">
            <span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
              <meta itemprop="name" content="ExampleCorp Ltd">
              <span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
                <meta itemprop="url" content="https://example.com/img/examplecorp-logo.png">
                <meta itemprop="width" content="320">
                <meta itemprop="height" content="60">
              </span>
            </span>
            <span itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
              <meta itemprop="url" content="https://example.com/img/example4.jpg">
              <meta itemprop="width" content="640">
              <meta itemprop="height" content="480">
            </span>
          </article>
        </li>
        <li>
          <article itemscope itemtype="https://schema.org/BlogPosting">
            <h4 itemprop="name headline">
              <a itemprop="mainEntityOfPage url" href="#">Blog example title 2</a>
            </h4>
            <meta itemprop="author" content="Aaron A. Aardvark">
            <meta itemprop="datePublished" content="2014-12-23T19:32:41Z">
            <meta itemprop="dateModified" content="2014-12-23T19:32:41Z">
            <span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
              <meta itemprop="name" content="ExampleCorp Ltd">
              <span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
                <meta itemprop="url" content="https://example.com/img/examplecorp-logo.png">
                <meta itemprop="width" content="320">
                <meta itemprop="height" content="60">
              </span>
            </span>
            <span itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
              <meta itemprop="url" content="https://example.com/img/example5.jpg">
              <meta itemprop="width" content="640">
              <meta itemprop="height" content="480">
            </span>
          </article>
        </li>
      </ol>
    </section>

  </aside>

<!-- Footer -->
  <footer>
    <small>
      ©2019
      <span itemscope itemtype="https://schema.org/PostalAddress">
        <span itemprop="name">ExampleCorp Ltd</span>.
          Registered in England and Wales no. 0000000.<br>
          Registered Office:
          <span itemprop="streetAddress">Anon Towers, 88 Example Road</span>,
          <span itemprop="addressLocality">Exampleton</span>,
          <span itemprop="addressRegion">Exampleshire</span>
          <span itemprop="postalCode">AZ0 0AZ</span>.
      </span>
    </small>
  </footer>

</body>
</html>

Artrikel Terkait

Cara Mengatasi Pembatasan Iklan Adsense
  • 10 November 2019
Mengatasi Lupa Password Akun Mi
  • 08 November 2019