At 01:23 PM 4/17/2006, [EMAIL PROTECTED] wrote:
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.
If you don't need them numbered, I'd suggest DL:
<dl>
<dt>Question</dt>
<dd>Answer</dd>
<dt>Question</dt>
<dd>Answer</dd>
<dd>Answer</dd>
(or:)
<dt>Question</dt>
<dd>
<p>Answer</p>
<p>Answer</p>
</dd>
...
</dd>
If you need the items auto-numbered, I'd go OL:
<ol>
<li>Question
<p>Answer</p>
</li>
<li>Question
<p>Answer</p>
<p>Answer</p>
</li>
...
</ol>
Paul
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************