Errors found while checking this document as XHTML 1.0 Strict!

Result: 21 Errors
:
Modified:(undefined)
Server:Apache/2.2.16 (Debian)
Size:(undefined)
Content-Type:text/html
: utf-8
: XHTML 1.0 Strict
Root Element: html
Root Namespace: http://www.w3.org/1999/xhtml
Options

Help on the options is available.

↑ Top

Validation Output: 21 Errors

  1. Error Line 138, Column 6: element "u" undefined
    <p><u>Multiple Choice:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  2. Error Line 168, Column 6: element "u" undefined
    <p><u>Short Answer:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  3. Error Line 176, Column 27: element "u" undefined
        <p>If there is only <u>one</u> correct Short Answer, it may be written with…

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  4. Error Line 179, Column 6: element "u" undefined
    <p><u>True-False:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  5. Error Line 188, Column 6: element "u" undefined
    <p><u>Matching:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  6. Error Line 206, Column 6: element "u" undefined
    <p><u>Numerical:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  7. Error Line 209, Column 114: element "u" undefined
    …hing between 1.5 and 2.5, then it would be written as follows <u>{#2:0.5}</u>. 

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  8. Error Line 235, Column 6: element "u" undefined
    <p><u>Essay:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  9. Error Line 242, Column 6: element "u" undefined
    <p><u>Description:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  10. Error Line 253, Column 6: element "u" undefined
    <p><u>Line Comments:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  11. Error Line 262, Column 6: element "u" undefined
    <p><u>Question Name:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  12. Error Line 273, Column 6: element "u" undefined
    <p><u>Feedback:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  13. Error Line 293, Column 6: element "u" undefined
    <p><u>Percentage Answer Weights:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  14. Error Line 315, Column 19: there is no attribute "size"
        <p><font size="-1">Note that it is possible to specify percentage answer we…

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

  15. Error Line 315, Column 23: element "font" undefined
        <p><font size="-1">Note that it is possible to specify percentage answer we…

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  16. Error Line 320, Column 6: element "u" undefined
    <p><u>Specify text-formatting for the question</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  17. Error Line 335, Column 6: element "u" undefined
    <p><u>Multiple Answers:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  18. Error Line 360, Column 6: element "u" undefined
    <p><u>Special Characters ~ = # { } :</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
  19. Error Line 397, Column 5: document type does not allow element "pre" here; missing one of "object", "ins", "del", "map", "button" start-tag
    <pre>

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

  20. Error Line 403, Column 5: document type does not allow element "pre" here; missing one of "object", "ins", "del", "map", "button" start-tag
    <pre>

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

  21. Error Line 410, Column 6: element "u" undefined
    <p><u>Other Options:</u><br />

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    • incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).

↑ Top

Source Listing

Below is the source input I used for this validation:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <link rel="stylesheet" type="text/css" href="http://www.di.uevora.pt/moodle/theme/standard/styles.php" />
  6. <link rel="stylesheet" type="text/css" href="http://www.di.uevora.pt/moodle/theme/standardwhite/styles.php" />
  7. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/yui/yahoo/yahoo-min.js"></script><script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/yui/event/event-min.js"></script><script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/yui/connection/connection-min.js"></script><script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/swfobject/swfobject.js"></script><script type="text/javascript">
  8. //<![CDATA[
  9. var flashversion = swfobject.getFlashPlayerVersion();
  10. YAHOO.util.Connect.asyncRequest('GET','http://www.di.uevora.pt/moodle/login/environment.php?sesskey=h4sS6PiKsm&flashversion='+flashversion.major+'.'+flashversion.minor+'.'+flashversion.release);
  11. //]]>
  12. </script>
  13. <!--[if IE 7]>
  14. <link rel="stylesheet" type="text/css" href="http://www.di.uevora.pt/moodle/theme/standard/styles_ie7.css" />
  15. <![endif]-->
  16. <!--[if IE 6]>
  17. <link rel="stylesheet" type="text/css" href="http://www.di.uevora.pt/moodle/theme/standard/styles_ie6.css" />
  18. <![endif]-->
  19. <meta name="keywords" content="moodle, Help " />
  20. <title>Help</title>
  21. <link rel="shortcut icon" href="http://www.di.uevora.pt/moodle/theme/standardwhite/favicon.ico" />
  22. <!--<style type="text/css">/*<![CDATA[*/ body{behavior:url(http://www.di.uevora.pt/moodle/lib/csshover.htc);} /*]]>*/</style>-->
  23. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/javascript-static.js"></script>
  24. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/javascript-mod.php"></script>
  25. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/overlib/overlib.js"></script>
  26. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/overlib/overlib_cssstyle.js"></script>
  27. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/cookies.js"></script>
  28. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/ufo.js"></script>
  29. <script type="text/javascript" src="http://www.di.uevora.pt/moodle/lib/dropdown.js"></script>
  30. <script type="text/javascript" defer="defer">
  31. //<![CDATA[
  32. setTimeout('fix_column_widths()', 20);
  33. //]]>
  34. </script>
  35. <script type="text/javascript">
  36. //<![CDATA[
  37. function openpopup(url, name, options, fullscreen) {
  38. var fullurl = "http://www.di.uevora.pt/moodle" + url;
  39. var windowobj = window.open(fullurl, name, options);
  40. if (!windowobj) {
  41. return true;
  42. }
  43. if (fullscreen) {
  44. windowobj.moveTo(0, 0);
  45. windowobj.resizeTo(screen.availWidth, screen.availHeight);
  46. }
  47. windowobj.focus();
  48. return false;
  49. }
  50. function uncheckall() {
  51. var inputs = document.getElementsByTagName('input');
  52. for(var i = 0; i < inputs.length; i++) {
  53. inputs[i].checked = false;
  54. }
  55. }
  56. function checkall() {
  57. var inputs = document.getElementsByTagName('input');
  58. for(var i = 0; i < inputs.length; i++) {
  59. inputs[i].checked = true;
  60. }
  61. }
  62. function inserttext(text) {
  63. text = ' ' + text + ' ';
  64. if ( opener.document.forms['theform'].message.createTextRange && opener.document.forms['theform'].message.caretPos) {
  65. var caretPos = opener.document.forms['theform'].message.caretPos;
  66. caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  67. } else {
  68. opener.document.forms['theform'].message.value += text;
  69. }
  70. opener.document.forms['theform'].message.focus();
  71. }
  72. function getElementsByClassName(oElm, strTagName, oClassNames){
  73. var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
  74. var arrReturnElements = new Array();
  75. var arrRegExpClassNames = new Array();
  76. if(typeof oClassNames == "object"){
  77. for(var i=0; i<oClassNames.length; i++){
  78. arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/\-/g, "\\-") + "(\\s|$)"));
  79. }
  80. }
  81. else{
  82. arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/\-/g, "\\-") + "(\\s|$)"));
  83. }
  84. var oElement;
  85. var bMatchesAll;
  86. for(var j=0; j<arrElements.length; j++){
  87. oElement = arrElements[j];
  88. bMatchesAll = true;
  89. for(var k=0; k<arrRegExpClassNames.length; k++){
  90. if(!arrRegExpClassNames[k].test(oElement.className)){
  91. bMatchesAll = false;
  92. break;
  93. }
  94. }
  95. if(bMatchesAll){
  96. arrReturnElements.push(oElement);
  97. }
  98. }
  99. return (arrReturnElements)
  100. }
  101. //]]>
  102. </script>
  103. </head>
  104. <body class=" course-1 dir-ltr lang-en_utf8" id="help">
  105. <div id="page">
  106. <!-- END OF HEADER -->
  107. <div id="content" class=" clearfix"><div class="box generalbox generalboxcontent"><h1>Importing "GIFT" format files</h1>
  108. <p>GIFT is the most comprehensive import format available for importing
  109. Moodle quiz questions from a text file. It supports Multiple-Choice,
  110. True-False, Short Answer, Matching and Numerical questions, as well as insertion
  111. of a _____ for the Missing Word format. Various question-types can be
  112. mixed in a single text file, and the format also supports line comments,
  113. question names, feedback and percentage-weight grades.</p>
  114. <p>The text encoding of your text file must be utf-8 (unless you only use ascii characters).
  115. An example questions text file can be found here: <a href="http://www.di.uevora.pt/moodle/question/format/gift/examples.txt">gift/examples.txt</a>.</p>
  116. <h3>Basics</h3>
  117. <p>Each individual question in the GIFT file must not contain any blank lines. Each question is delimited by
  118. at least one blank line. If you need to represent a blank line in your question you can use
  119. the entity <b>\n</b>. You can use comments wherever you wish but they must start with two forward
  120. slashes (<b>//</b>) at the start of the line.</p>
  121. <h3>QUESTION TYPES</h3>
  122. <p><u>Multiple Choice:</u><br />
  123. For multiple choice questions, wrong answers are prefixed with a tilde (~)
  124. and the correct answer is prefixed with an equal sign (=).</p>
  125. <pre>
  126. Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
  127. </pre>
  128. <p>The <b>Missing Word</b> format automatically inserts a fill-in-the-blank line (like this _____) in the middle of the sentence.
  129. To use the Missing Word format, place the answers where you want the line to appear in the sentence.</p>
  130. <pre>
  131. Grant is {~buried =entombed ~living} in Grant's tomb.
  132. </pre>
  133. <p>If the answers come before the closing punctuation mark, a fill-in-the-blank line will be inserted
  134. for the &quot;missing word&quot; format. All question types can be written in the Missing Word format.</p>
  135. <p>There must be a blank line (double carriage return) separating questions.
  136. For clarity, the answers can be written on separate lines and even indented. For example:</p>
  137. <pre>
  138. The American holiday of Thanksgiving is celebrated on the {
  139. ~second
  140. ~third
  141. =fourth
  142. } Thursday of November.
  143. Japanese characters originally came from what country? {
  144. ~India
  145. =China
  146. ~Korea
  147. ~Egypt
  148. }
  149. </pre>
  150. <p><u>Short Answer:</u><br />
  151. Answers in Short Answer question-type are all prefixed by an equal sign (=),
  152. indicating that they are all correct answers. The answers must not contain a tilde.</p>
  153. <pre>
  154. Who's buried in Grant's tomb?{=no one =nobody}
  155. Two plus two equals {=four =4}.
  156. </pre>
  157. <p>If there is only <u>one</u> correct Short Answer, it may be written without the equal sign prefix,
  158. as long as it cannot be confused as True-False.</p>
  159. <p><u>True-False:</u><br />
  160. In this question-type the answer indicates whether the statement is true or false.
  161. The answer should be written as {TRUE} or {FALSE}, or abbreviated to {T} or {F}.</p>
  162. <pre>
  163. Grant is buried in Grant's tomb.{F}
  164. The sun rises in the east.{T}
  165. </pre>
  166. <p><u>Matching:</u><br />
  167. Matching pairs begin with an equal sign (=) and are separated by this symbol "->". There must be at least three matching pairs.</p>
  168. <pre>
  169. Matching Question. {
  170. =subquestion1 -> subanswer1
  171. =subquestion2 -> subanswer2
  172. =subquestion3 -> subanswer3
  173. }
  174. Match the following countries with their corresponding capitals. {
  175. =Canada -> Ottawa
  176. =Italy -> Rome
  177. =Japan -> Tokyo
  178. =India -> New Delhi
  179. }
  180. </pre>
  181. <p>Matching questions do not support feedback or percentage answer weights.</p>
  182. <p><u>Numerical:</u><br />
  183. The answer section for Numerical questions must start with a number sign (#).
  184. Numerical answers can include an error margin, which is written following the correct answer, separated by a colon.
  185. So for example, if the correct answer is anything between 1.5 and 2.5, then it would be written as follows <u>{#2:0.5}</u>.
  186. This indicates that 2 with an error margin of 0.5 is correct (i.e., the span from 1.5 to 2.5).
  187. If no error margin is specified, it will be assumed to be zero.</p>
  188. <pre>
  189. When was Ulysses S. Grant born? {#1822}
  190. What is the value of pi (to 3 decimal places)? {#3.1415:0.0005}.
  191. </pre>
  192. <p>Optionally, numerical answers can be written as a span in the following format {#<i>MinimumValue</i>..<i>MaximumValue</i>}.</p>
  193. <pre>
  194. What is the value of pi (to 3 decimal places)? {#3.141..3.142}.
  195. </pre>
  196. <p>Moodle's browser interface does not support multiple numerical answers, but Moodle's code can and so does GIFT.
  197. This can be used to specify numerical multiple spans, and can be particularly usefully when combined with percentage weight grades.
  198. If multiple answers are used, they must be separated by an equal sign, like short answer questions.</p>
  199. <pre>
  200. When was Ulysses S. Grant born? {#
  201. =1822:0
  202. =%50%1822:2
  203. }
  204. </pre>
  205. <p>Note that since Moodle's browser GUI doesn't support multiple answers for Numerical questions,
  206. there's no way to see them or edit them through Moodle.
  207. The only way to change a numerical answer beyond the first, is to delete the question
  208. and re-import it (or use something like phpMyAdmin).</p>
  209. <p><u>Essay:</u><br />
  210. An essay question is simply a question with an empty answer field. Nothing is permitted
  211. between the curly braces at all.</p>
  212. <pre>
  213. Write a short biography of Ulysses S. Grant {}
  214. </pre>
  215. <p><u>Description:</u><br />
  216. A description "question" has no answer part at all</p>
  217. <pre>
  218. The next set of questions will concern arithmatic
  219. </pre>
  220. <h3>OPTIONS</h3>
  221. <p>In addition to these basic question types, this filter offers the following options:
  222. line comments, question name, feedback and percentage answer weight.</p>
  223. <p><u>Line Comments:</u><br />
  224. Comments that will not be imported into Moodle can be included in the text file.
  225. This can be used to provide headers or more information about questions.
  226. All lines that start with a double backslash (not counting tabs or spaces) will be ignored by the filter.</p>
  227. <pre>
  228. // Subheading: Numerical questions below
  229. What's 2 plus 2? {#4}
  230. </pre>
  231. <p><u>Question Name:</u><br />
  232. A question name can be specified by placing it first and enclosing it within double colons.</p>
  233. <pre>
  234. ::Kanji Origins::Japanese characters originally
  235. came from what country? {=China}
  236. ::Thanksgiving Date::The American holiday of Thanksgiving is
  237. celebrated on the {~second ~third =fourth} Thursday of November.
  238. </pre>
  239. <p>If no question name is specified, the entire question will be used as the name by default.</p>
  240. <p><u>Feedback:</u><br />
  241. Feedback can be included for each answer by following the answer with a number sign (# also known as a hash mark) and the feedback.</p>
  242. <pre>
  243. What's the answer to this multiple-choice question? {
  244. ~wrong answer#feedback comment on the wrong answer
  245. ~another wrong answer#feedback comment on this wrong answer
  246. =right answer#Very good!
  247. }
  248. Who's buried in Grant's tomb? {
  249. =no one#excellent answer!
  250. =nobody#excellent answer!
  251. }
  252. Grant is buried in Grant's tomb.{FALSE#Wrong, No one is buried in Grant's tomb.#Right, well done.}</pre>
  253. <p>For Multiple Choice questions, feedback is displayed only for the answer the student selected.
  254. For short answer, feedback is shown only when students input the corresponding correct answer.
  255. For true-false questions, there can be one or two feedback strings. The first is shown if the
  256. student gives the wrong answer. The second if the student gives the right answer.</p>
  257. <p><u>Percentage Answer Weights:</u><br />
  258. Percentage answer weights are available for both Multiple Choice and Short Answer questions.
  259. Percentage answer weights can be included by following the tilde (for Multiple Choice) or
  260. equal sign (for Short Answer) with the desired percent enclosed within percent signs (e.g., %50%).
  261. This option can be combined with feedback comments.</p>
  262. <pre>
  263. Difficult question.{~wrong answer ~%50%half credit answer =full credit answer}
  264. ::Jesus' hometown::Jesus Christ was from {
  265. ~Jerusalem#This was an important city, but the wrong answer.
  266. ~%25%Bethlehem#He was born here, but not raised here.
  267. ~%50%Galilee#You need to be more specific.
  268. =Nazareth#Yes! That's right!
  269. }.
  270. ::Jesus' hometown:: Jesus Christ was from {
  271. =Nazareth#Yes! That's right!
  272. =%75%Nazereth#Right, but misspelled.
  273. =%25%Bethlehem#He was born here, but not raised here.
  274. }</pre>
  275. <p>Note that the last two examples are essentially the same question, first as multiple choice and then as short answer.</p>
  276. <p><font size="-1">Note that it is possible to specify percentage answer weights that are NOT
  277. available through the browser interface. The <b>Match Grades</b> drop-down on the import
  278. page determines how these are handled. You can either request that an error be reported
  279. or that the answer weight be adjusted to the nearest valid answer weight.</font></p>
  280. <p><u>Specify text-formatting for the question</u><br />
  281. The question text (only) may have an optional text format specified. Currently the available formats are
  282. <b>moodle</b> (Moodle Auto-Format), <b>html</b> (HTML format), <b>plain</b> (Plain text format) and
  283. <b>markdown</b> (Markdown format). The format is specified in square brackets immediately before the
  284. question text. <a href="help.php?file=textformat.html">More information on text formats in Moodle.</a></p>
  285. <pre>
  286. [markdown]The *American holiday of Thanksgiving* is celebrated on the {
  287. ~second
  288. ~third
  289. =fourth
  290. } Thursday of November.
  291. </pre>
  292. <p><u>Multiple Answers:</u><br />
  293. The Multiple Answers option is used for multiple choice questions when two or more answers must
  294. be selected in order to obtain full credit. The multiple answers option is enabled by assigning
  295. partial answer weight to multiple answers, while allowing no single answer to receive full credit.</p>
  296. <pre>
  297. What two people are entombed in Grant's tomb? {
  298. ~No one
  299. ~%50%Grant
  300. ~%50%Grant's wife
  301. ~Grant's father
  302. }
  303. </pre>
  304. <p>Note that there is no equal sign (=) in any answer and the answers should total no more than 100%,
  305. otherwise Moodle will return an error.
  306. To avoid the problem of students automatically getting 100% by simply checking all of the answers,
  307. it is best to include negative answer weights for wrong answers.</p>
  308. <pre>
  309. What two people are entombed in Grant's tomb? {
  310. ~%-50%No one
  311. ~%50%Grant
  312. ~%50%Grant's wife
  313. ~%-50%Grant's father
  314. }
  315. </pre>
  316. <p><u>Special Characters ~ = # { } :</u><br />
  317. These symbols <b> ~ = # { } : </b> control the operation of this filter and cannot be used as normal text within questions.
  318. Since these symbols have a special role in determining the operation of this filter, they are called "control characters."
  319. But sometimes you may want to use one of these characters, for example to show a mathematical formula in a question.
  320. The way to get around this problem is "escaping" the control characters.
  321. This means simply putting a backslash (\) before a control character so the filter will know that you want to use
  322. it as a literal character instead of as a control character.
  323. For example:</p>
  324. <pre>
  325. Which answer equals 5? {
  326. ~ \= 2 + 2
  327. = \= 2 + 3
  328. ~ \= 2 + 4
  329. }
  330. ::GIFT Control Characters::
  331. Which of the following is NOT a control character for the GIFT import format? {
  332. ~ \~ # \~ is a control character.
  333. ~ \= # \= is a control character.
  334. ~ \# # \# is a control character.
  335. ~ \{ # \{ is a control character.
  336. ~ \} # \} is a control character.
  337. = \ # Correct! \ (backslash) is not a control character. BUT,
  338. it is used to escape the control characters.
  339. }</pre>
  340. <p>When the question is processed, the backslash is removed and is not saved in Moodle.</p>
  341. <h3>Specifying Categories</h3>
  342. <p>It is possible to change the category into which the questions are added within the GIFT file.
  343. You can change the category as many times as you wish within the file. All questions after the modifier
  344. up to the next modifier or the end of the file will be added to the specified category. Up to the first
  345. category modifier the category specified on the import screen will be used. Note that for this to work
  346. the <b>from file:</b> box must be ticked on the import screen.</p>
  347. <p>To include a category modifier include a line like this (with a blank line before and after):
  348. <pre>
  349. $CATEGORY: tom/dick/harry
  350. </pre>
  351. or simply
  352. <pre>
  353. $CATEGORY: mycategory
  354. </pre>
  355. ...the first example specifies a path of nested categories. In this cae the questions will go into <i>harry</i>. The
  356. categories are created if they do not exist.</p>
  357. <p><u>Other Options:</u><br />
  358. Short Answer questions can be made case sensitive by changing &quot;0&quot; to &quot;1&quot; in the following line:<br />
  359. <tt>$question-&gt;usecase = 0; // Ignore case</tt></p>
  360. <p></p>
  361. </div><div class="closewindow">
  362. <form action="#"><div><input type="button" onclick="self.close();" value="Close this window" /></div></form></div>
  363. <p class="helpindex"><a href="help.php?file=index.html">Index of all help files</a></p></div><div id="footer"><hr /><p class="helplink"></p> <div class="validators"><ul>
  364. <li><a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=http%3A%2F%2Fwww.di.uevora.pt%2Fmoodle%2Fhelp.php%3Fmodule%3Dquiz%26file%3Dformatgift.html">Validate HTML</a></li>
  365. <li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=http%3A%2F%2Fwww.di.uevora.pt%2Fmoodle%2Fhelp.php%3Fmodule%3Dquiz%26file%3Dformatgift.html">Section 508 Check</a></li>
  366. <li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=0&amp;warnp2n3e=1&amp;url1=http%3A%2F%2Fwww.di.uevora.pt%2Fmoodle%2Fhelp.php%3Fmodule%3Dquiz%26file%3Dformatgift.html">WCAG 1 (2,3) Check</a></li>
  367. </ul></div>
  368. </div>
  369. </div>
  370. </body>
  371. </html>

↑ Top