qa-examples

(Difference between revisions)

Jump to: navigation, search
(Added another example)
m
Line 4: Line 4:
== Examples ==
== Examples ==
-
DocBook has a <qandaset> element http://www.docbook.org/tdg/en/html/qandaset.html
+
'''NOTE: These examples need actual markup placed inline with summary analysis of their implied schemas. See [[hlisting-examples]] for example. See also [[examples]] for more on how to do this.'''
-
which is used with <question> and <answer> elements, and optionally
+
-
<qandadiv> elements.
+
The Firefox faq is marked up with <dl> http://www.mozilla.org/support/firefox/faq
The Firefox faq is marked up with <dl> http://www.mozilla.org/support/firefox/faq
Line 15: Line 13:
For the Brainstorms and Raves article on [http://brainstormsandraves.com/articles/semantics/structure/#faqSemantics, HTML, XHTML, and Structure], the faq is definition list enclosed in a div element of the class faq.  Questions are inside of dt elements, and answers inside of dd elements.  If a question has multiple answers, there would be a seperate dd element for each answer.
For the Brainstorms and Raves article on [http://brainstormsandraves.com/articles/semantics/structure/#faqSemantics, HTML, XHTML, and Structure], the faq is definition list enclosed in a div element of the class faq.  Questions are inside of dt elements, and answers inside of dd elements.  If a question has multiple answers, there would be a seperate dd element for each answer.
 +
 +
== Formats ==
 +
 +
'''NOTE: This should really be moved to [[qa-formats]]'''
 +
DocBook has a <qandaset> element http://www.docbook.org/tdg/en/html/qandaset.html
 +
which is used with <question> and <answer> elements, and optionally
 +
<qandadiv> elements.

Revision as of 11:11, 9 March 2006

This page is a place holder for examples of how people currently collect questions and answers


Examples

NOTE: These examples need actual markup placed inline with summary analysis of their implied schemas. See hlisting-examples for example. See also examples for more on how to do this.

The Firefox faq is marked up with <dl> http://www.mozilla.org/support/firefox/faq as is the old Mozilla 1.5 FAQ: http://www.mozilla.org/start/1.5/faq/profile.html#newprofile Both of them are separated into sections and have tables of contents.

For the W3C XHTML faq, the table of contents is in an ordered list, and contains urls that point to the question/answer fragments below. The question answer fragments are an h3 element paired with one or more p elements.

For the Brainstorms and Raves article on HTML, XHTML, and Structure, the faq is definition list enclosed in a div element of the class faq. Questions are inside of dt elements, and answers inside of dd elements. If a question has multiple answers, there would be a seperate dd element for each answer.

Formats

NOTE: This should really be moved to qa-formats DocBook has a <qandaset> element http://www.docbook.org/tdg/en/html/qandaset.html which is used with <question> and <answer> elements, and optionally <qandadiv> elements.

qa-examples was last modified: Wednesday, December 31st, 1969

Views