Error found while checking this document as XHTML 1.0 Strict!

Result: 1 Error
:
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: 1 Error

  1. Error Line 170, Column 73: there is no attribute "target"
    …//www.imsglobal.org/question/" target="_qti">More information on the IMS QTI s…

    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.

↑ 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=dONY5K0GEe&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>Exporting questions from a Category</h1>
  108. <p>This function allows you to export a complete category (and all its
  109. subcategories) of questions to a text file. </p>
  110. <p>Please note that in many file formats some information is lost
  111. when the questions are exported. This is because many formats do
  112. not possess all the features that exist in Moodle questions. You should
  113. not expect to export and import questions and for them to be
  114. identical. Also some question types may not export at all.
  115. You are advised to check exported data before using
  116. it in a production environment.</p>
  117. <p>The format(s) currently supported are:</p>
  118. <h2>GIFT format</h2>
  119. <p>GIFT is the most comprehensive import/export format available for exporting
  120. Moodle quiz questions to a text file. It was designed to be an easy
  121. method for teachers writing questions as a text file. It supports Multiple-Choice,
  122. True-False, Short Answer, Matching and Numerical questions, as well as insertion
  123. of a _____ for the "missing word" format. Note that Cloze questions are not
  124. currently supported. Various question-types can be
  125. mixed in a single text file, and the format also supports line comments, question names,
  126. feedback and percentage-weight grades. Below are some examples:</p>
  127. <pre>
  128. Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
  129. Grant is {~buried =entombed ~living} in Grant's tomb.
  130. Grant is buried in Grant's tomb.{FALSE}
  131. Who's buried in Grant's tomb?{=no one =nobody}
  132. When was Ulysses S. Grant born?{#1822}
  133. </pre>
  134. <p class="moreinfo"><a href="help.php?file=formatgift.html&amp;module=quiz">More info about the "GIFT" format</a></p>
  135. <h2>Moodle XML format</h2>
  136. <p>This Moodle specific format exports quiz questions in a simple XML format. They
  137. can then be imported into another quiz category or used in some other process such as
  138. an XSLT transformation. The XML format will export images attached to questions (encoded
  139. base64).</p>
  140. <h2>IMS QTI 2.0</h2>
  141. <p>Exports in the standard IMS QTI (version 2.0) format. Note that this generates a group of files within
  142. a single 'zip' file.</p>
  143. <p class="moreinfo"><a href="http://www.imsglobal.org/question/" target="_qti">More information on the IMS QTI site</a>
  144. (external site in new window)</p>
  145. <h2>XHTML</h2>
  146. <p>Exports the category as a single page of 'strict' XHTML. Each question is clearly placed in its own
  147. &lt;div&gt; tag. If you want to use this page as-is, you will need to at least edit the &lt;form&gt; tag at the
  148. start of the &lt;body&gt; section to provide a suitable action (eg, a 'mailto').</p>
  149. <p>Import and Export formats are a pluggable resource. Other optional formats may be available in the
  150. Modules and Plugins database.</p>
  151. </div><div class="closewindow">
  152. <form action="#"><div><input type="button" onclick="self.close();" value="Close this window" /></div></form></div>
  153. <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>
  154. <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%3Dexport.html">Validate HTML</a></li>
  155. <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%3Dexport.html">Section 508 Check</a></li>
  156. <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%3Dexport.html">WCAG 1 (2,3) Check</a></li>
  157. </ul></div>
  158. </div>
  159. </div>
  160. </body>
  161. </html>

↑ Top