1

I am writing markup for a restaurant review. This is what I’ve got so far:

<article itemscope itemtype="http://data-vocabulary.org/Review">
    <img src="" alt="Shatranj Napoli" />

    <h3 itemprop="itemreviewed">
        <a href="">
            <strong>Shatranj Napoli </strong>
            <em>Bandra West</em>
        </a>
    </h3>

    <p class="cuisine">Italian &amp; Lucknowi</p>

    <p itemprop="summary">Whoa! What a marriage of cuisines! Italian and Lucknowi. And much to my surprise, both are good, though I prefer...</p>

    <span itemprop="rating">4.5</span>

    <span class="price-rating">3.5</spam>
</article>

Does this look right? Or will this not work at all?

1 Answer 1

1

Looks fine to me, as per Google’s documentation.

I don’t think the fact that you’re using the <article> tag will cause any problems, at least as far as the microdata goes — see e.g. http://diveintohtml5.ep.io/extensibility.html#data-model, where <section> is used in the example.

Sign up to request clarification or add additional context in comments.

2 Comments

I am using article because these are part of a series of entries. Hence, articles. What do you think?
@Amit: sounds like correct use of the <article> tag to me, and using microdata on an article tag should (judging from the links above) be fine too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.