Errors found while checking this document as XHTML 1.0 Strict!

Result: 12 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: 12 Errors

  1. Error Line 138, Column 29: there is no attribute "wrap"
    <p><textarea rows="25" wrap="virtual" cols="60">This question consists of some …

    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.

  2. Error Line 154, Column 54: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag
    <p>This example will appear to students as follows:<p>

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

  3. Error Line 156, Column 24: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag
    <div id="middle-column"><div><span id="maincontent"></span><div id="q6" class="…

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

  4. Error Line 164, Column 11: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified
      selected></option><option value="8919">Wrong answer</option><option value="89…

    "VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance.

    How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ...

  5. Error Line 165, Column 27: document type does not allow element "table" here; missing one of "object", "ins", "del", "map", "button" start-tag
            <table width="50%"><tbody><tr><td>

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

  6. Error Line 218, Column 30: document type does not allow element "table" here; missing one of "object", "ins", "del", "map", "button" start-tag
            <table class="answer">

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

  7. Error Line 241, Column 88: end tag for "input" omitted, but OMITTAG NO was specified
    …      <input  id="resp3796_8966" name="resp3796_5"  type="radio" value="8966" >

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

  8. Info Line 241, Column 15: start tag was here
                  <input  id="resp3796_8966" name="resp3796_5"  type="radio" value=…
  9. Error Line 262, Column 77: there is no attribute "target"
    …a href="http://www.moodle.org" target="_blank">www.moodle.org</a> and smileys …

    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.

  10. Error Line 262, Column 313: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified
    …ect name="resp3796_6"><option selected></option><option value="8968">Yes</opti…

    "VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance.

    How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ...

  11. Error Line 262, Column 494: end tag for "input" omitted, but OMITTAG NO was specified
    …you give it? <input name="resp3796_7" size="1" > </label><br /><br />Good luck!

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

  12. Info Line 262, Column 459: start tag was here
    …r /> b) What grade would you give it? <input name="resp3796_7" size="1" > </la…
  13. Error Line 268, 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 ">".

  14. Info Line 154, Column 52: start tag was here
    <p>This example will appear to students as follows:<p>
  15. Error Line 268, 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 ">".

  16. Info Line 154, Column 1: start tag was here
    <p>This example will appear to students as follows:<p>

↑ 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=E3iuVZu4PY&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>Embedded answers (Cloze)</h1>
  108. <p>This very flexible question type is similar to a
  109. popular format known as the Cloze format.</p>
  110. <p>Questions consist of a passage of text (in Moodle format) that has various sub-questions
  111. embedded within it, including</p>
  112. <ul>
  113. <li>short answers&nbsp;(SHORTANSWER or SA or MW),</li>
  114. <li>numerical answers (NUMERICAL or NM),</li>
  115. <li>multiple choice (MULTICHOICE or MC), represented as a dropdown menu in-line in the text</li>
  116. <li>multiple choice (MULTICHOICE_V or MCV), represented a vertical column of radio buttons, or</li>
  117. <li>multiple choice (MULTICHOICE_H or MCH), represented as a horizontal row of radio-buttons.</li>
  118. </ul>
  119. <p>There is currently no graphical interface to create these
  120. questions - you need to specify the question format using the text box or by
  121. importing them from external files.</p>
  122. <p>Here is an example of the input text used to specify such a question:</p>
  123. <p><textarea rows="25" wrap="virtual" cols="60">This question consists of some text with an answer embedded right here {1:MULTICHOICE:Wrong answer#Feedback for this wrong answer~Another wrong answer#Feedback for the other wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer} and right after that you will have to deal with this short answer {1:SHORTANSWER:Wrong answer#Feedback for this wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer} and finally we have a floating point number {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8~%50%23.8:2#Feedback for half credit answer in the nearby region of the correct answer}.&lt;br /&gt;
  124. &lt;br /&gt;
  125. The multichoice question can also be shown in the vertical display of the standard moodle multiple choice.&lt;br /&gt;
  126. &lt;br /&gt;
  127. {2:MCV:Wrong answer#Feedback for this wrong answer~Another wrong answer#Feedback for the other wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
  128. Or in an horizontal display that is included here in a table&lt;br /&gt;
  129. &lt;br /&gt;
  130. {2:MCH:Wrong answer#Feedback for this wrong answer~Another wrong answer#Feedback for the other wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
  131. Note that addresses like www.moodle.org and smileys :-) all work as normal:&lt;br /&gt;
  132. a) How good is this? {:MULTICHOICE:=Yes#Correct~No#We have a different opinion}&lt;br /&gt;
  133. b) What grade would you give it? {3:NUMERICAL:=3:2}&lt;br /&gt;
  134. &lt;br /&gt;
  135. Good luck!
  136. </textarea>
  137. </p>
  138. <p>This example will appear to students as follows:<p>
  139. <div id="middle-column"><div><span id="maincontent"></span><div id="q6" class="que multianswer clearfix">
  140. <div class="info">
  141. <span class="accesshide">Question </span>1
  142. <div class="grade">
  143. Marks: --/12.00</div>
  144. </div>
  145. <div class="content">
  146. <div class="ablock clearfix"><label>This question consists of some text with an answer embedded right here <span ><select name="resp3796_1"><option
  147. selected></option><option value="8919">Wrong answer</option><option value="8920">Another wrong answer</option><option value="8921">Correct answer</option><option value="8922">Answer that gives half the credit</option></select></span></label><label>and right after that you will have to deal with this short answer <input name="resp3796_2" size="33" /> </label><label> and finally we have a floating point number <input name="resp3796_3" size="4" /> </label><label>.<br /><br />The multichoice question can also be shown in the vertical display of the standard moodle multiple choice<br /><br />
  148. <table width="50%"><tbody><tr><td>
  149. <table class="answer">
  150. <tr class="r0">
  151. <td class="c0 control">
  152. <input id="resp3796_8960" name="resp3796_4" type="radio" value="8960" />
  153. </td>
  154. <td class="c1 text ">
  155. <label for="resp3796_8960">
  156. <span class="anun">1<span class="anumsep">.</span></span> Wrong answer
  157. </label>
  158. </td>
  159. <td class="c0 feedback">
  160. </td>
  161. </tr>
  162. <tr class="r1">
  163. <td class="c0 control">
  164. <input id="resp3796_8961" name="resp3796_4" type="radio" value="8961" />
  165. </td>
  166. <td class="c1 text ">
  167. <label for="resp3796_8961">
  168. <span class="anun">2<span class="anumsep">.</span></span> Another wrong answer
  169. </label>
  170. </td>
  171. <td class="c0 feedback">
  172. </td>
  173. </tr>
  174. <tr class="r0">
  175. <td class="c0 control">
  176. <input id="resp3796_8962" name="resp3796_4" type="radio" value="8962" />
  177. </td>
  178. <td class="c1 text ">
  179. <label for="resp3796_8962">
  180. <span class="anun">3<span class="anumsep">.</span></span> Correct answer
  181. </label>
  182. </td>
  183. <td class="c0 feedback">
  184. </td>
  185. </tr>
  186. <tr class="r1">
  187. <td class="c0 control">
  188. <input id="resp3796_8963" name="resp3796_4" type="radio" value="8963" />
  189. </td>
  190. <td class="c1 text ">
  191. <label for="resp3796_8963">
  192. <span class="anun">4<span class="anumsep">.</span></span> Answer that gives half the credit
  193. </label>
  194. </td>
  195. <td class="c0 feedback">
  196. </td>
  197. </tr>
  198. </table>
  199. </td></tr></tbody></table>
  200. <br />Or in an horizontal display that is included here in a table<br /><br />
  201. <table class="answer">
  202. <tr class="r0">
  203. <td class="c0 control">
  204. <input id="resp3796_8964" name="resp3796_5" type="radio" value="8964" />
  205. </td>
  206. <td class="c1 text ">
  207. <label for="resp3796_8964">
  208. <span class="anun">1<span class="anumsep">.</span></span> Wrong answer
  209. </label>
  210. </td>
  211. <td class="c0 feedback">
  212. </td>
  213. <td class="c0 control">
  214. <input id="resp3796_8965" name="resp3796_5" type="radio" value="8965" />
  215. </td>
  216. <td class="c1 text ">
  217. <label for="resp3796_8965">
  218. <span class="anun">2<span class="anumsep">.</span></span> Another wrong answer
  219. </label>
  220. </td>
  221. <td class="c0 feedback">
  222. </td>
  223. <td class="c0 control">
  224. <input id="resp3796_8966" name="resp3796_5" type="radio" value="8966" >
  225. </td>
  226. <td class="c1 text ">
  227. <label for="resp3796_8966">
  228. <span class="anun">3<span class="anumsep">.</span></span> Correct answer
  229. </label>
  230. </td>
  231. <td class="c0 feedback">
  232. </td>
  233. <td class="c0 control">
  234. <input id="resp3796_8967" name="resp3796_5" type="radio" value="8967" />
  235. </td>
  236. <td class="c1 text ">
  237. <label for="resp3796_8967">
  238. <span class="anun">4<span class="anumsep">.</span></span> Answer that gives half the credit
  239. </label>
  240. </td>
  241. <td class="c0 feedback">
  242. </td>
  243. </tr>
  244. </table>
  245. <br />Note that addresses like <a href="http://www.moodle.org" target="_blank">www.moodle.org</a> and smileys <img alt="smile" width="15" height="15" src="http://132.208.141.198/moodle_head/pix/s/smiley.gif" /> all work as normal:<br /> a) How good is this? <span><select name="resp3796_6"><option selected></option><option value="8968">Yes</option><option value="8969">No</option></select></span></label><label><br /> b) What grade would you give it? <input name="resp3796_7" size="1" > </label><br /><br />Good luck!
  246. </div>
  247. <div class="grading">
  248. </div>
  249. </div>
  250. </div></div></div>
  251. </div><div class="closewindow">
  252. <form action="#"><div><input type="button" onclick="self.close();" value="Close this window" /></div></form></div>
  253. <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>
  254. <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%3Dmultianswer.html">Validate HTML</a></li>
  255. <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%3Dmultianswer.html">Section 508 Check</a></li>
  256. <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%3Dmultianswer.html">WCAG 1 (2,3) Check</a></li>
  257. </ul></div>
  258. </div>
  259. </div>
  260. </body>
  261. </html>

↑ Top