Errors found while checking this document as XHTML 1.0 Strict!

Result: 5 Errors
:
Modified:(undefined)
Server:Apache
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: 5 Errors

  1. Error Line 116, Column 4: document type does not allow element "ol" here; missing one of "object", "ins", "del", "map", "button" start-tag
    <ol>

    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>").

  2. Error Line 191, Column 93: there is no attribute "target"
    …www.zend.com/zend/tut/tutorial-delin2.php" target="_blank">regular-expressions 

    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.

  3. Error Line 335, Column 5: end tag for element "ul" which is not open
    </ul>

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.

  4. Error Line 337, Column 6: end tag for "ol" omitted, but OMITTAG NO was specified
    </div><div class="closewindow">

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

  5. Info Line 116, Column 1: start tag was here
    <ol>
  6. Error Line 337, Column 6: end tag for "p" omitted, but OMITTAG NO was specified
    </div><div class="closewindow">

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

  7. Info Line 114, Column 1: start tag was here
    <p>The types of Questions currently supported by the Lesson module are:

↑ 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="pt" xml:lang="pt">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <link rel="stylesheet" type="text/css" href="http://aulas.esec-acf.pt/theme/standard/styles.php" />
  6. <link rel="stylesheet" type="text/css" href="http://aulas.esec-acf.pt/theme/formal_white/styles.php" />
  7. <!--[if IE 7]>
  8. <link rel="stylesheet" type="text/css" href="http://aulas.esec-acf.pt/theme/standard/styles_ie7.css" />
  9. <![endif]-->
  10. <!--[if IE 6]>
  11. <link rel="stylesheet" type="text/css" href="http://aulas.esec-acf.pt/theme/standard/styles_ie6.css" />
  12. <![endif]-->
  13. <meta name="keywords" content="moodle, Ajuda " />
  14. <title>Ajuda</title>
  15. <link rel="shortcut icon" href="http://aulas.esec-acf.pt/theme/formal_white/favicon.ico" />
  16. <!--<style type="text/css">/*<![CDATA[*/ body{behavior:url(http://aulas.esec-acf.pt/lib/csshover.htc);} /*]]>*/</style>-->
  17. <script type="text/javascript" src="http://aulas.esec-acf.pt/lib/javascript-static.js"></script>
  18. <script type="text/javascript" src="http://aulas.esec-acf.pt/lib/javascript-mod.php"></script>
  19. <script type="text/javascript" src="http://aulas.esec-acf.pt/lib/overlib/overlib.js"></script>
  20. <script type="text/javascript" src="http://aulas.esec-acf.pt/lib/overlib/overlib_cssstyle.js"></script>
  21. <script type="text/javascript" src="http://aulas.esec-acf.pt/lib/cookies.js"></script>
  22. <script type="text/javascript" src="http://aulas.esec-acf.pt/lib/ufo.js"></script>
  23. <script type="text/javascript" src="http://aulas.esec-acf.pt/lib/dropdown.js"></script>
  24. <script type="text/javascript" defer="defer">
  25. //<![CDATA[
  26. setTimeout('fix_column_widths()', 20);
  27. //]]>
  28. </script>
  29. <script type="text/javascript">
  30. //<![CDATA[
  31. function openpopup(url,name,options,fullscreen) {
  32. fullurl = "http://aulas.esec-acf.pt" + url;
  33. windowobj = window.open(fullurl,name,options);
  34. if (fullscreen) {
  35. windowobj.moveTo(0,0);
  36. windowobj.resizeTo(screen.availWidth,screen.availHeight);
  37. }
  38. windowobj.focus();
  39. return false;
  40. }
  41. function uncheckall() {
  42. void(d=document);
  43. void(el=d.getElementsByTagName('INPUT'));
  44. for(i=0;i<el.length;i++) {
  45. void(el[i].checked=0);
  46. }
  47. }
  48. function checkall() {
  49. void(d=document);
  50. void(el=d.getElementsByTagName('INPUT'));
  51. for(i=0;i<el.length;i++) {
  52. void(el[i].checked=1);
  53. }
  54. }
  55. function inserttext(text) {
  56. text = ' ' + text + ' ';
  57. if ( opener.document.forms['theform'].message.createTextRange && opener.document.forms['theform'].message.caretPos) {
  58. var caretPos = opener.document.forms['theform'].message.caretPos;
  59. caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  60. } else {
  61. opener.document.forms['theform'].message.value += text;
  62. }
  63. opener.document.forms['theform'].message.focus();
  64. }
  65. function getElementsByClassName(oElm, strTagName, oClassNames){
  66. var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
  67. var arrReturnElements = new Array();
  68. var arrRegExpClassNames = new Array();
  69. if(typeof oClassNames == "object"){
  70. for(var i=0; i<oClassNames.length; i++){
  71. arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/\-/g, "\\-") + "(\\s|$)"));
  72. }
  73. }
  74. else{
  75. arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/\-/g, "\\-") + "(\\s|$)"));
  76. }
  77. var oElement;
  78. var bMatchesAll;
  79. for(var j=0; j<arrElements.length; j++){
  80. oElement = arrElements[j];
  81. bMatchesAll = true;
  82. for(var k=0; k<arrRegExpClassNames.length; k++){
  83. if(!arrRegExpClassNames[k].test(oElement.className)){
  84. bMatchesAll = false;
  85. break;
  86. }
  87. }
  88. if(bMatchesAll){
  89. arrReturnElements.push(oElement);
  90. }
  91. }
  92. return (arrReturnElements)
  93. }
  94. //]]>
  95. </script>
  96. </head>
  97. <body class=" course-1 notloggedin dir-ltr lang-pt_utf8" id="help">
  98. <div id="page">
  99. <!-- END OF HEADER -->
  100. <div id="content"><div class="box generalbox generalboxcontent"><h1>Question Types</h1>
  101. <p>The types of Questions currently supported by the Lesson module are:
  102. <ol>
  103. <li><p><b>Multichoice</b> This is the default question type. Multichoice questions
  104. are popular questions where the student is asked to choose one answer from a
  105. set of alternatives. The correct answer takes the student further into the
  106. lesson, the wrong answers do not. The wrong answers are sometimes called the
  107. &quot;distractors&quot; and the utility of these questions often rely more
  108. on the quality of the distractors than either the questions themselves or their
  109. correct answers.</p>
  110. <p> Each answer can optionally have a response. If no response is
  111. entered for an answer then the default response &quot;That's the Correct
  112. Answer&quot; or &quot;That's the Wrong Answer&quot; is shown to the student. </p>
  113. <p>It is possible to have more than one correct answer to a multichoice question.
  114. The different correct answers may give the student different responses and
  115. jump to different (forward) pages in the lesson but
  116. do not vary in their grades, (that is, some answers are <b>not</b> more correct
  117. than others, at least in terms of grade.) It is possible for all the answers
  118. to be correct and they might take the student to different (forward) parts of
  119. the lesson depending on which one is chosen.</p>
  120. <p>There is variant of Multichoice questions called <b>&quot;Multichoice
  121. Multianswer&quot;</b> questions. These require the student to select all the
  122. correct answers from the set of answers. The question may or may not tell
  123. the student how many correct answers there are. For example &quot;Which of the
  124. following were US Presidents?&quot; does not, while "Select the two US
  125. presidents from the following list." does. The actual number of correct
  126. answers can be from <b>one</b> up to the number of choices. (A Multichoice
  127. Multianswer question with one correct answer <b>is</b> different from a
  128. Multichoice question as the former allows the student the possibility of
  129. choosing more than one answer while the latter does not.)</p>
  130. <p>Again the correct answers are flagged using forward jumps, the wrong answers
  131. by same page or backward jumps. When there is more than one correct answer
  132. the jumps should all go to the same page, similarly with the wrong answers.
  133. If that is <b>not</b> the case a warning is given on the teacher's view of
  134. the lesson. The correct response, if required, should be given on the first
  135. correct answer and the wrong response, if required, should be on the first
  136. wrong answer. Responses on the other answers are ignored (without warning). </p></li>
  137. <li><p><b>Short Answer</b> </p>
  138. <p>The student is prompted for a short piece of text.
  139. This is checked against one or more answers. Answers can be either correct
  140. or wrong. Each answer can optionally have a response. If no response is
  141. entered for an answer then the default response &quot;That's the Correct
  142. Answer&quot; or &quot;That's the Wrong Answer&quot; is shown to the student.
  143. If the text entered does not match any of the answers the question is wrong
  144. and the student is shown the default wrong response.</p>
  145. <p><strong>There are two different comparison systems</strong> available for the
  146. Short Answer type of question: the simple system is used by default; the
  147. &quot;Regular Expressions&quot; system is used if the &quot;Use Regular
  148. Expressions&quot; option box is checked. </p>
  149. <ul>
  150. <li><strong>Simple analysis</strong>
  151. <p>In this (default) system of analysis, the comparisons ignore the case of the text. The
  152. asterisk (*) character can be used in answers as a &quot;wild card&quot;
  153. character. It stands for any number of characters (including no characters
  154. at all). For example, the answer &quot;Long*&quot; will match
  155. &quot;longer&quot;, &quot;longest&quot; and &quot;long&quot;. If one of
  156. the answers is just &quot;*&quot; (a single *) this answer will match
  157. anything, it is normally used as the last &quot;catch-all&quot; answer. The
  158. matching process goes through the answers in the order they appear on the
  159. screen. Once a match is found the process stops and the corresponding
  160. result (and response, if present) is returned. So, if for example the
  161. answers are Longest, Long* and * (in that order), the input
  162. &quot;longer&quot; will match the second answer and, in this case, the
  163. third answer, although a match, is ignored.</p>
  164. <p> If an asterisk (*) is actually needed in an answer, it should be entered as
  165. \*, backslash asterisk.</p>
  166. </li>
  167. </ul>
  168. <ul>
  169. <li><strong>Regular Expressions analysis</strong>
  170. <p>This system gives you access to a more powerful but more complicated system for
  171. analysing the student's answers. For a complete introduction to Regular Expressions,
  172. see these sites <a href="http://www.zend.com/zend/tut/tutorial-delin2.php" target="_blank">regular-expressions
  173. tutorial</a> or <a href="http://perso.wanadoo.fr/joseph.rezeau/eao/developpement/expandRegexpToString.htm#"
  174. target="_blank">rezeau.org</a>. </p>
  175. <h3>Correct answer matching a regular expression pattern </h3>
  176. <p>It is not possible to give complete examples of the vast possibilities offered
  177. by this system, and the following are just some possibilities. </p>
  178. <p><strong>Example 1.</strong> Suppose your question is &quot;What are the colors
  179. of the French flag?&quot;. In the Answer 1 frame you type this regular
  180. expression: &quot;<span class="c_computeroutput">it&rsquo;s blue, white(,| and)
  181. red</span>/i&quot;. This will match any of those four student answers:</p>
  182. <ul>
  183. <li>it&rsquo;s blue, white, red</li>
  184. <li>it&rsquo;s blue, white and red</li>
  185. <li>It&rsquo;s blue, white, red</li>
  186. <li>It&rsquo;s blue, white and red </li>
  187. </ul>
  188. <p>Please note that by default a regular expression match is case sensitive; to
  189. make the match case insensitive you must add the <strong>/i</strong> parameter
  190. right at the end of your expression.</p>
  191. <p><strong>Example 2</strong>. Question: &quot;What is blue, or red, or yellow?&quot;.
  192. Answer: &quot;(|it's )a colou?r&quot;. This will match:</p>
  193. <ul>
  194. <li>a colour</li>
  195. <li> a color</li>
  196. <li>it's a colour</li>
  197. <li>it's a color</li>
  198. </ul>
  199. <p>Notes.- The beginning of this regular expression &quot;(|it's )&quot; will
  200. match either nothing or &quot;it's &quot; (i.e. &quot;it's&quot; followed by
  201. a space). The ? (question-mark) means: preceding character zero or one time;
  202. it is used here to match British English as well as US spelling.</p>
  203. <p><strong>Example 3.</strong> Question: &quot;Name an animal whose name is made
  204. of 3 letters and the middle letter is the vowel <em>a</em>&quot;. Anwer:
  205. &quot;[bcr]at&quot;. This will match: bat, cat and rat. </p>
  206. <h3>Detecting missing required words or character strings</h3>
  207. <p>Regular expressions alone cannot detect absent character strings, so you have to
  208. add a little code in your Answer to take care of this. Any Teacher Answer which
  209. begins with a double hyphen will analyse the student&rsquo;s answer to find out
  210. whether the following string is present or absent. If present, the analysis
  211. continues to the next question; if absent, the analysis stops and the relevant
  212. Response message is displayed.</p>
  213. <p><strong>Example 4. </strong></p>
  214. <ul>
  215. <li>Answer 2: <span class="c_computeroutput">--.*blue.*</span>/i</li>
  216. <li>student answer: &quot;it's red and white&quot; </li>
  217. <li>Response 2: <span class="c_computeroutput">The color of the sky is missing!</span></li>
  218. <li>Jump 2: <span class="c_computeroutput">this page</span></li>
  219. </ul>
  220. <p>Here, the . (dot) stands for &ldquo;any character&rdquo; and the * (asterisk)
  221. means &ldquo;preceding special character repeated any number of times&rdquo;.
  222. The Answer2 regular expression above means: check whether the character string
  223. &quot;blue&quot;, preceded with anything and followed by anything is absent
  224. from the student's answer. Please note that the use of the asterisk is different
  225. in the Simple analysis system and in the Regular Expressions system.</p>
  226. <p><strong>Example 5.</strong> Question: &quot;Name an animal whose name is made of
  227. 3 letters and the middle letter is the vowel <em>a</em>&quot;. Teacher Answer: &quot;--[b|c|r]&quot;. Response: &quot;Your answer should start with one of these letters: b, c or r&quot; </p>
  228. <h3>Detecting unwanted (incorrect) words or character strings</h3>
  229. <p>You may want to detect, in the student's answer, the presence of one or several
  230. words which should be <strong>not</strong> be there (because they are wrong) and
  231. to single them out with a specific response. Just start your teacher Answer by a
  232. double plus sign (++). </p>
  233. <p><strong>Example 6. </strong></p>
  234. <ul>
  235. <li>Answer 3: ++(yellow|black|orange|green|black|pink)/i</li>
  236. <li>student answer: &quot;it's blue, orange and white&quot; </li>
  237. <li>Response 3: One or more colors are wrong!</li>
  238. <li>Jump 3: this page</li></ul>
  239. <p>If any of these (wrong) colors is detected in the student&rsquo;s answer,
  240. then the negative feedback message (Response 3) will be displayed and the
  241. wrong strings will be colored red (or the color of the .incorrect class if
  242. it exists in a CSS stylesheet of your active theme).</p>
  243. <p><strong>Example 7</strong>. Question: &quot;Name an animal whose name is made
  244. of 3 letters and the middle letter is the vowel <em>a</em>&quot;. Teacher
  245. Answer: &quot;++hat&quot;. Response: &quot;You might wear one made of an
  246. animal's skin, but a hat can't be considered as an animal.&quot; </p>
  247. <h3>Escaping special characters </h3>
  248. <p>If you need to use characters which are part of the regular expressions set
  249. of <em>special characters</em>, you need to &quot;escape&quot; them (i.e. precede
  250. them with a backslash). E.g. if you want to accept the answer &quot;My computer
  251. cost 1000$&quot;, you must write the regular expression as &quot;My computer cost
  252. 1000\$&quot;. The special characters which must be escaped are .^$*()[]+?|</p>
  253. </li>
  254. </ul>
  255. </li>
  256. <li><p><b>True/False</b> The answer to this type of question only has two options,
  257. true or false. The student is prompted to choose which is the correct
  258. option. This type of question is basically a Multichoice question with just
  259. two choices.</p></li>
  260. <li><p><b>Matching</b> These are quite powerful and flexible questions. They
  261. consist of a list of names or statements which must be correctly matched
  262. against other list of names or statements. For example &quot;Match the
  263. Capital with the Country&quot; with the two lists Japan, Canada, Italy and
  264. Tokyo, Ottawa, Rome. It is possible to have repeated entries in one of the
  265. lists but care should be taken to make the repeats identical. For example
  266. &quot;Identify the type of these creatures&quot; with the lists Sparrow,
  267. Cow, Ant, Dog and Bird, Animal, Insect, Animal. </p>
  268. <p>When creating this type of question the items for the first list go into the
  269. Answer boxes and items for the second list go into the Response boxes. Once
  270. created a more sensible labeling scheme is shown. When the student
  271. successfully matches the items the jump on the first answer is used. An
  272. unsuccessful answer jumps to the page on the second answer. The question does
  273. <b>not</b> support custom responses, the student is told how many matches
  274. are correct or if all the matches are correct.</p>
  275. <p>Unlike the Multichoice question where the choices are shown in a random
  276. order, the first list of items is <b>not</b> shuffled but shown in the same
  277. order as entered. This allows for <b>&quot;Ordered&quot;</b> questions to be
  278. constructed. Consider the question &quot; Put the following into the order
  279. they were born, the earliest first&quot; with the lists 1., 2., 3., 4. and
  280. Longfellow, Lawrence, Lowell, Larkin. The second list is shuffed before
  281. being used in the question, of course.</p></li>
  282. <li><p><b>Numerical</b> This type of question requires a number as the answer.
  283. In it's simplest form it requires just one answer to be specified. For
  284. example &quot;What is 2 plus 2?&quot; with the answer 4 given a forward
  285. jump. However, it is better to specify a range because the internal rounding
  286. of numerical values can make single numeric comparisons rather hit or miss.
  287. Thus, if the question were &quot;What is 10 divided by 3&quot; it would be
  288. necessary to give the answer as <b>&quot;Minimum:Maximum&quot;</b>, that
  289. is <b>two</b> values separated by a colon (:). Thus if 3.33:3.34 is given as the
  290. acceptable range for the answer, then the answers 3.33, 3.333, 3.3333...
  291. would all be taken as correct answers. &quot;Wrong&quot; answers would
  292. include 3.3 (less than the minimum) and 3.4 (greater than the maximum).</p>
  293. <p>More than one correct answer is allowed and the answers can be either single
  294. or pair of values. Note that the order in which the answers are tested is
  295. Answer 1, Answer 2... so some care needs to taken if the desired response
  296. is to appear. For example the question &quot;When was Larkin born?&quot;
  297. could have the single value of 1922, the exact answer, and the pair of
  298. values 1920:1929, the 20's, as the less exact answer.The order in which
  299. these values should be tested is, obviously, 1922 then 1920:1929. The
  300. first answer might have the response &quot;That's exactly right&quot;
  301. while the other answer's response might be &quot;That's close, you've got
  302. the right decade&quot;</p>
  303. <p>Wrong answers can be given but depending on their actual range, care should
  304. be taken to place them after the correct answers. For example in adding the
  305. wrong answer 3:4 to the &quot;10 divided by 3&quot; question it needs to come
  306. after the correct answer. That is the answers are ordered 3.33:3.34 (the
  307. &quot;correct&quot; answer) then 3:4 (the &quot;wrong&quot; answer, but
  308. not wildly wrong answer!).</p></li>
  309. </ul>
  310. </div><div class="closewindow">
  311. <form action="#"><div><input type="button" onclick="self.close();" value="Fechar esta janela" /></div></form></div>
  312. <p class="helpindex"><a href="help.php?file=index.html">Índice de todos os ficheiros de ajuda</a></p></div><div id="footer"><p class="helplink"></p><hr /> <div class="validators"><ul>
  313. <li><a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=http%3A%2F%2Faulas.esec-acf.pt%2Fhelp.php%3Fmodule%3Dlesson%26file%3Dquestiontypes.html">Validate HTML</a></li>
  314. <li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=http%3A%2F%2Faulas.esec-acf.pt%2Fhelp.php%3Fmodule%3Dlesson%26file%3Dquestiontypes.html">Section 508 Check</a></li>
  315. <li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=0&amp;warnp2n3e=1&amp;url1=http%3A%2F%2Faulas.esec-acf.pt%2Fhelp.php%3Fmodule%3Dlesson%26file%3Dquestiontypes.html">WCAG 1 (2,3) Check</a></li>
  316. </ul></div>
  317. </div>
  318. </div>
  319. </body>
  320. </html>

↑ Top