What is the best way to mark up feedback in XHTML?

I used only those elements pand spanfor this ... but I always try to use the right elements, and that's what I still do not think about it in relation to comments.

That's what I meant...

<div class="testimonial">
 <blockquote>I love your products!</blockquote>
 <span>Jim Testimonial-giver</span>
</div>

Is this the best way to do this? Is there any best practice?

I looked at how W3C reviews were marking up on their site, and they used ...

<blockquote>
 <p>
  <a id="aptest" name="aptest">Applied Testin.....</a>
  <br />
  <span class="QuoteAttr">-- Shane P. M...</span>
 </p>
</blockquote>

Should I just copy how the W3C did it, because not all of them should be correct?

+5
source share
3 answers

Use the cite tag :

<div class="testimonial">
 <blockquote>i love your products</blockquote>
 <cite>Jim Testimonial-giver</cite>
</div>

Also I would do it as follows:

<blockquote class="testimonial">
  i love your products
  <cite>Jim Testimonial-giver</cite>
</blockquote>

, . .

+8

Mozilla.org, , q <cite> , <blockquote> <div> . HTML 5, , <cite> ; , .

, , - :

<blockquote class="testimonial">
  <q>I love your products!</q>
  <cite>Jim Testimonial-giver</cite>
</blockquote>

, <cite>, :

<blockquote class="testimonial">
  <q>I love your products!</q>
  <span class="quote-attribution">Jim Testimonial-giver</span>
</blockquote>
+4

Tantek Çelik slide , .

, alex Rex M, :

<ul id="testimonials">
  <li>
    <blockquote>
      i love your products
    </blockquote>
    <cite>&mdash;Jim Testimonial-giver</cite>
  </li>
  <li>
    <blockquote>
      i love your products even more
    </blockquote>
    <cite>&mdash;Joe Testimonial-giver</cite>
  </li>
  [...]
</ul>
+1

All Articles