Quoting Tables; a Question of Semantics

7 Jan 2005

These samples are structurally complete, but totally stripped to retain focus on the placement of the citation.

Example 1


<table summary="">
<caption></caption>
	<thead>
		<tr>
			<th scope="col"></th>
			<th scope="col"></th>
			<th scope="col"></th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="3">Published by <cite>......</cite></td>
		</tr>
	</tfoot>
	<tbody>
		<tr>
			<td></td>
			<td></td>
			<td></td>
		</tr>
	</tbody>
</table>

Example 2


<blockquote cite="Published by ......">
<table summary="">
<caption></caption>
	<thead>
		<tr>
			<th scope="col"></th>
			<th scope="col"></th>
			<th scope="col"></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td></td>
			<td></td>
			<td></td>
		</tr>
	</tbody>
</table>
</blockquote>

I’ve decided which one I prefer, but I’d like to hear others’ views about this. I almost forgot to mention — one example may be completely wrong.

Many will see the obvious similarities between this post and Dan Cederholm’s “SimpleQuiz” series, however I have no intention of doing this sort of survey again so please flame/troll elsewhere. Thankyou and have a great day :-)

Filed under: , ,

11 Comments

  1. Rob Mientjes:

    I like the third one with the cite attribute as it is less obtrusive but still contains relevant data. But I’m in dubio.

    What about that penguin?

  2. John Oxton:

    Hmmm…. difficult, but I think for neatness I would probably say Example 3 looks the most elegant and logical.

  3. Scott Plumlee:

    Gotta go with #3. Makes it obvious that you are persenting data from another source before the data is encountered, whereas the other two present the data and then cite it. From the standpoint of a reader, I’d rather know where it comes from right away so I can keep that in mide while looking at the information.

  4. mark:

    As long as you quote the whole table, there seems to be no reason to go with 1. I would like to go with John and Scott but your use of the cite-attribute seems wrong considering the discussion at Roger’s. cite as an attribute has to contain a URI. In 2 your blockquote contains content that is not part of the quote.
    I would mix 2+3 to take a blockquote containing the cite=”URI” and a paragraph following the blockquote containing the reference to the original author. if you want to enclose that in one tag I think you have to go with a <div class=”quote”>.

    just my 2 C.

  5. Paul Connolley:

    I feel mark is on the right track, IMO, and have similar feeling about the combination of 2 and 3.

    The cite attribute is for URIs and, in the context of the blockquote element should be to cite the source document and not really for short messages.

    I would recommend the use of the title attribute to add extra information. I believe there are a number of people using this method.

    I refer you to the following links:

  6. Geoffrey Sneddon:

    I’d say 2, as the cite attribute is for URIs, and it also put’s it outside the table, which IMO it has no reason to be in…

  7. Andrew:

    I knew number three would be tempting — looks like it caught three people before being exposed ;-) . Number three does make more sense though, and since a physical publication (esp. one which is out of print) can’t be expected to have a URI, surely some leverage is needed.

    Paul: thanks for the photomatt link — I missed that one first time ’round

    Rob: The penguin was delicious!

  8. heretic:

    Hmm. I’d go for option two, but only since option three relies on the cite attribute which is for a URI rather than conversational text. As a result, the plain text paragraph wins out in my mind.

    Plus… personally I am wary of quoting something and not being clear enough about what is a quote and what is my own content. Since I’m not sure the average user knows about semantics, I wouldn’t feel comfortable relying on an attribute to make the soure clear.

  9. Seth Thomas Rasmussen:

    My favorite number: #2!

    You left a comment using the cite attribute in the manner of #3 on my site not too long ago, I recall. ;) I’m pretty sure I’ve done the same thing at least at one point or another.

    These are good details to cover, so I’m glad you can be arsed to use your blog-space for it.

    When you use the cite attribute properly, it fascilitates some useful functionality. On my site, for instance, I use a function that reads the attribute, and if it has a value, automatically appends a link to the source within’ the quote.

    I want to publish the function for others, but I’ve yet to iron out the details with auto-linking <q /> elements. The same function handles both.

  10. Gabriel Mihalache:

    No idea, but I just wanted to say that I really love your obsession with the semantics of it all… you managed the record of raising an issue with completly non-rendered information! Wow!
    This is the kind of attitude that will push XHTML2.0 and the semnatic web forward. Keep up the good/obsessive work!

  11. Glen Mailer:

    Hate to be picky, but might I point out that of the three, only the first is actually valid. Unless I’m mistaken you must either use thead, tfoot and tbody, or none of the three at all.