W3C home > Mailing lists > Public > www-html@w3.org > July 2003

Re: WD-xhtml2-20030506: <qst>ions and <ans>wers

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Wed, 23 Jul 2003 15:24:44 -0400
To: www-html@w3.org
Message-ID: <1058988284.b9e58400cmoschini@myrealbox.com>

I agree these ought to be block elements.

> This begins to get messy, but I'd suggest that the
> structure here is really:


I actually think this is an excellent model and would be a useful addition to the spec. Note that using the qa wrapper means you can have multiple questions with 1 answer if you like, or multiple answers to one question - both are valid cases and here, semantically valid. You could unfortunately end up with multiple of both, which a confused HTML'er may do - is it possible to specify in the DTD that it's 1+ of one but 1 of the other OR 1 of one and 1+ of the other?

This would provide a lot of interesting opportunities for UAs, including easily "Googling" the answers to questions, and validating a document to find there's a question you haven't answered ("Error: qa element without at least 1 ans element").

-Chris "SoopahMan" Moschini
Received on Wednesday, 23 July 2003 15:24:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:04 UTC