HTML

Comment / Review Markup with Schema

admin by @admin ADMIN
5d ago
May 31, 2026
Public
0 0 up · 0 down Sign in to vote
Comments and reviews can also have Schema.org markup. The `Review` type appears under products in Google search results with star ratings; `Comment` is for general user feedback.
HTML
Raw
<article itemscope itemtype="https://schema.org/Review">
    <header>
        <h4>
            <span itemprop="author" itemscope itemtype="https://schema.org/Person">
                <span itemprop="name">Alice Example</span>
            </span>
        </h4>
        <p>
            <span itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
                <span itemprop="ratingValue">5</span> out of
                <span itemprop="bestRating">5</span> stars
            </span>
            ·
            <time itemprop="datePublished" datetime="2025-03-12">March 12, 2025</time>
        </p>
    </header>

    <h3 itemprop="name">Best keyboard I\'ve owned</h3>
    <p itemprop="reviewBody">
        The tactile bump is satisfying without being too loud. Build quality
        is excellent and the hot-swap sockets mean I can experiment without
        a soldering iron.
    </p>
</article>

<!-- Generic comments use schema.org Comment -->
<article itemscope itemtype="https://schema.org/Comment" id="comment-42">
    <p itemprop="author" itemscope itemtype="https://schema.org/Person">
        <span itemprop="name">Bob</span>
    </p>
    <time itemprop="datePublished" datetime="2025-03-12T14:25-05:00">today</time>
    <p itemprop="text">Great write-up — I had the same issue last month.</p>
</article>
Tags

Save your own code snippets

Create a free account and build your private vault. Share publicly whenever you want.