Whenever I markup something that has a name/value pair, I tend to use a definition list. Since we are talking about FAQs, there is no logical reason to number them. It gets a bit more complicated when you consider having a list of hyperlinked questions at the top of a document that references a list of anchored answers below. Under those circumstances, it might be correct to do something like this, substituting for an ordered list if desired:
 
<ul>
  <li><a href="">First Question</a></li>
  <li><a href="">Second Question</a></li>
  <li><a href="">Third Question</a></li>
</ul>
 
<dl>
  <dt id="first">First Question</dt>
  <dd>First answer</dd>
  <dt id="second">Second Question</dt>
  <dd>Second answer</dd>
  <dt id="third">Third Question</dt>
  <dd>Third answer</dd>
</dl>
 
 
Simon Jessey
 
 
 
 
 
 
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
> Greetings.
>
> I'm marking up an FAQ for an XHTML 1.1/CSS Web page. What is the best way
> to mark up the questions and answers so it will be semantically correct
> and standards compliant?
>
> Right now, the FAQ is in a table-based format using a numbered list.

Reply via email to