The sections of a true-false question are shown below:
<ANSWER ANS=l HELP=url>
The ANS=l attribute specifies that l is the the correct answer. l must be one of: "true", "false". Two "buttons" (with hypertext links) are automatically generated in place of the ANSWER element. The reader may select one of these to supply an answer.
The HELP="url" attribute is optional. If given, it specifies the URL of a help document, and a link to it is automatically included.
<RESPONSES> <WHEN ANS=x> . . . . . . <WHEN CORRECT> . . . . . . <WHEN INCORRECT> . . . . . . </RESPONSES>The <WHEN...> elements specify the conditions under which the following text is to be displayed as a response.
<WHEN ANS=x> specifies that the following text is to be displayed whenever the user provides x as an answer (x must be true or false).
<WHEN CORRECT> specifies that the following text is to be displayed whenever the user selects the correct answer, and no other WHEN clause has been printed.
<WHEN INCORRECT> specifies that the following text is to be displayed whenever the user selects an incorrect answer, and no other WHEN clause has been printed.
All WHEN elements are optional; if none are given then the RESPONSES section need not be given either. In either case, a suitable default response is provided, giving feedback as to whether the selected answer was correct or not.