Here’s nice and simple Simplquiz for Christmas. Imagine a new site, with a news item in an <article> element. Within that are several user-submitted comments, each of which is in its own <article> element, as the spec recommends. Most commenting systems ask the commenter for his/ her URL, which is published in the header at the beginning of the comment, usually as a link with the commenter’s name as the linked text.
How would you code the URL of a person leaving a comment (assuming they provided one)? Remember that there may be multiple comments on any one page. Also note that we’re not going to worry about what element wraps each comment this time. Choose from the five options below, and explain your rationale in the comments.
A:
<header>
Comment by <a href="http://www.myspace.com/timbo/">Tim
Berners-Lee</a>
</header>
WTF! LOL! U SUCK! KTHXBAI!
B:
<header>
Comment by <cite><a href="http://www.myspace.com/timbo">Tim
Berners-Lee</a></cite>
</header>
WTF! LOL! U SUCK! KTHXBAI!
C:
<header>
Comment by <a href="http://www.myspace.com/timbo"><cite>Tim
Berners-Lee</cite></a>
</header>
WTF! LOL! U SUCK! KTHXBAI!
D:
<footer>
Comment by <address><a href="http://www.myspace.com/timbo">Tim
Berners-Lee</a></address>
</footer>
WTF! LOL! U SUCK! KTHXBAI!
E:
<h1>
Comment by <a href="http://www.myspace.com/timbo"><address>Tim
Berners-Lee</address></a>
</h1>
WTF! LOL! U SUCK! KTHXBAI!
Your answers below, please, and show your working out. We’ll close comments and give our opinions on Wednesday 22 December.
Rules: It is THE LAW that you read the preceding comments before adding your own. Note: please DON’T USE ANGLE BRACKETS in your comments. Escape them with < and > or just use [foo] – we’ll know what you mean.