{"id":85,"date":"2005-10-04T08:09:55","date_gmt":"2005-10-04T08:09:55","guid":{"rendered":"http:\/\/lachy.id.au\/log\/2005\/10\/web-developer-quiz"},"modified":"2006-04-30T23:33:49","modified_gmt":"2006-04-30T23:33:49","slug":"web-developer-quiz","status":"publish","type":"post","link":"https:\/\/lachy.id.au\/log\/2005\/10\/web-developer-quiz","title":{"rendered":"Web Developer Quiz"},"content":{"rendered":"<p>This quiz is designed to test whether or not web developers have an understanding of the basic technologies used on the web, primarily HTML, HTTP, Media Types (MIME) and character repertoires and encodings. Personally, I expect every single web developer to pass this quiz with flying colours, yet reality tells me that a large proportion will struggle. So, in the interests of finding out exactly how much web developers in general do and do not know, and for your own personal benefit, I decided to publish this quiz (or survey, if you like).<\/p>\r\n<p>Firstly, a few ground rules. <strong>Please don&#8217;t cheat.<\/strong> I expect all web developers to know the answers to these questions without the need for reference material or the use of automated tools. That means, please don&#8217;t make use of the validator or look up the specifications to answer these questions, they&#8217;re designed to be easy enough to answer without such tools, yet still provide enough of a challenge for all but the most knowledgeable  authors. Secondly, in order to give everyone a fair go and avoid chance of having all the correct answers given away in the first response, I&#8217;ve temporarily enabled comment moderation and no comments will be appearing until I publish the results and answers next week. Ok, so on with the quiz\u2026<\/p>\r\n\r\n<p>This sample document applies to the first 3  questions.  You may assume the HTTP  headers contain:<\/p>\r\n<pre>Content-Type: text\/html;charset=UTF-8<\/pre>\r\n<p>Note: This document uses <em>some<\/em> special syntax that  is not widely supported in existing browsers; it is only designed to test your  knowledge of HTML.<\/p>\r\n\r\n<pre>\r\n1. &lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.01\/\/EN&quot;&gt;\r\n2. &lt;html lang=&quot;en&quot;&gt;\r\n3.   &lt;title\/Sample HTML 4.01 Document\/\r\n4.   &lt;p align=&quot;right&quot;&gt;This is a sample HTML 4.01 Strict document.\r\n5.   &lt;&gt;How much do you know about HTML?&lt;\/&gt;\r\n6.   &lt;!-- -- --&gt; &lt;em&gt;It\u2019s not hard!&lt;\/em&gt; &lt;!-- -- --&gt;\r\n7.   &lt;p&gt;Created by &lt;a href=http:\/\/lachy.id.au\/&quot;&gt;Lachlan Hunt\r\n8. &lt;\/html&gt;\r\n<\/pre>\r\n\r\n<h3 id=\"quiz-validation\">Validation<\/h3>\r\n<p>Which lines in the above HTML document contain  validation errors, if any? Note: I&#8217;m only looking for those errors that will be reported by a conforming SGML based validator.<\/p>\r\n\r\n<h3 id=\"quiz-dom\">Elements in the DOM<\/h3>\r\n<ol>\r\n\t<li>How many  <code>p<\/code> elements are there within the above  document?<\/li>\r\n\t<li> Which of  these elements, if any, will <em>not<\/em> be present within the the Document Object Model of the above document?\r\n\t\t<ul>\r\n\t\t\t<li><code>&lt;head&gt;<\/code><\/li>\r\n\t\t\t<li><code>&lt;body&gt;<\/code><\/li>\r\n\t\t\t<li><code>&lt;em&gt;<\/code><\/li>\r\n\t\t<\/ul>\r\n\t<\/li>\r\n<\/ol>\r\n\r\n<h3 id=\"quiz-semantics\">Semantics<\/h3>\r\n<ol>\r\n\t<li>Which  markup structure is the most semantically correct for a navigational link menu,  regardless of how it will be presented visually?\r\n\t\t<ol>\r\n\t\t\t<li>\r\n\t\t\t\t<pre>&lt;div class=&quot;menu&quot;&gt;\r\n    &lt;a href=&quot;\u2026&quot;&gt;Link  1&lt;\/a&gt; |\r\n    &lt;a href=&quot;\u2026&quot;&gt;Link 2&lt;\/a&gt; |\r\n    &lt;a href=&quot;\u2026&quot;&gt;Link 3&lt;\/a&gt;\r\n&lt;\/div&gt;<\/pre>\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<pre>&lt;div class=&quot;menu&quot;&gt;\r\n    &lt;a href=&quot;\u2026&quot;&gt;Link  1&lt;\/a&gt;&lt;br&gt;\r\n    &lt;a href=&quot;\u2026&quot;&gt;Link  2&lt;\/a&gt;&lt;br&gt;\r\n    &lt;a href=&quot;\u2026&quot;&gt;Link  3&lt;\/a&gt;&lt;br&gt;\r\n&lt;\/div&gt;<\/pre>\r\n\t\t\t<\/li>\r\n\t\t\t<li>\r\n\t\t\t\t<pre>&lt;ul class=&quot;menu&quot;&gt;\r\n    &lt;li&gt;&lt;a  href=&quot;\u2026&quot;&gt;Link 1&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a  href=&quot;\u2026&quot;&gt;Link 2&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a  href=&quot;\u2026&quot;&gt;Link 3&lt;\/a&gt;&lt;\/li&gt;\r\n&lt;\/div&gt;<\/pre>\r\n\t\t\t<\/li>\r\n\t\t<\/ol>\r\n\t<\/li>\r\n\t<li>Which markup structure is the most semantically  correct for a title within the document body that may be horizontally centred  in a visual medium (eg. screen) using a large, bold font?\r\n\t\t<ol>\r\n\t\t\t<li><code>&lt;div  class=&quot;title&quot;&gt;Document Title&lt;\/div&gt;<\/code><\/li>\r\n\t\t\t<li><code>&lt;h1&gt;Document  Title&lt;\/h1&gt;<\/code><\/li>\r\n\t\t\t<li><code>&lt;p  align=&quot;center&quot;&gt;&lt;font size=&quot;+3&quot;&gt;&lt;b&gt;Document  Title&lt;\/b&gt;&lt;\/font&gt;&lt;\/p&gt;<\/code><\/li>\r\n\t\t\t<li><code>&lt;h1  style=&quot;font-weight:bold;font-size:large;text-align:center;&quot;&gt;Document  Title&lt;\/h1&gt;<\/code><\/li>\r\n\t\t\t<li><code>&lt;h1  class=&quot;LargeBoldCenterHeading&quot;&gt;Document Title&lt;\/h1&gt;<\/code><\/li>\r\n\t\t<\/ol>\r\n\t<\/li>\r\n<\/ol>\r\n\r\n<h3 id=\"quiz-charref\">Character References<\/h3>\r\n<p>Given these three numeric character references, and two character entity references:<\/p>\r\n<ul>\r\n\t<li><code>&amp;#x2019;<\/code><\/li>\r\n\t<li><code>&amp;#8217;<\/code><\/li>\r\n\t<li><code>&amp;#146;<\/code><\/li>\r\n\t<li><code>&amp;rsquo;<\/code><\/li>\r\n\t<li><code>&amp;apos;<\/code><\/li>\r\n<\/ul>\r\n<ol>\r\n\t<li>Which ones are  invalid for an HTML 4.01 document?<\/li>\r\n\t<li>Which ones are  invalid for an XHTML 1.0 document?<\/li>\r\n\t<li>Which ones are  invalid for a generic XML document? (assume no DTD or Schema)<\/li>\r\n<\/ol>\r\n\r\n<h3 id=\"quiz-mime\">Media Types (MIME)<\/h3>\r\n<ol>\r\n\t<li>Which of  these MIME types <strong>SHOULD NOT<\/strong> be used for an XHTML 1.1 document?\r\n\t\t<ul>\r\n\t\t\t<li><code>application\/xhtml+xml<\/code><\/li>\r\n\t\t\t<li><code>text\/html<\/code><\/li>\r\n\t\t\t<li><code>application\/xml<\/code><\/li>\r\n\t\t\t<li><code>text\/xml<\/code><\/li>\r\n\t\t<\/ul>\r\n\t<\/li>\r\n\t<li> Using  the answer from the previous question, under what conditions <strong>MAY<\/strong> (according to the recommendation) an XHTML 1.0 document use that MIME type?<\/li>\r\n<\/ol>\r\n","protected":false},"excerpt":{"rendered":"A quiz designed to test whether or not web developers have an understanding of the basic technologies used on the web, primarily HTML, HTTP, Media Types (MIME) and character repertoires and encodings.","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,1,2,7],"tags":[],"_links":{"self":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts\/85"}],"collection":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}