<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Errata on HTML5 in 24 Hours</title>
    <link>https://www.html5in24hours.com/tags/errata/</link>
    <description>Errata on HTML5 in 24 Hours</description>
    <generator>Hugo</generator>
    <language>en-us</language><copyright>Jennifer Kyrnin</copyright><lastBuildDate>Sat, 20 Feb 2016 21:33:42 +0000</lastBuildDate>
    <atom:link href="https://www.html5in24hours.com/tags/errata/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Error in RWD code</title>
      <link>https://www.html5in24hours.com/errata/rwd-listing18-3-error/</link>
      <pubDate>Sat, 20 Feb 2016 21:33:42 +0000</pubDate>
      <guid>https://www.html5in24hours.com/errata/rwd-listing18-3-error/</guid><description>&lt;h2 id=&#34;from-sams-teach-yourself-responsive-web-design-in-24-hours&#34;&gt;from: Sams Teach Yourself Responsive Web Design in 24 Hours&lt;/h2&gt;&#xA;&lt;p&gt;In LISTING 18.3 &amp;ldquo;CSS for a Responsive Form&amp;rdquo; (page 257) I include a position for the label of an input box to hide it from view. But the position values I used would cause the browser to create massive scrollbars both vertical and horizontal.&lt;/p&gt;&#xA;&lt;p&gt;The incorrect CSS is:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;label.inputbox {&#xA;  position: absolute;&#xA;  top: 9999px;&#xA;  left: 9999px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This is easily corrected by positioning the top and left styles negative 9999px each.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;label.inputbox {&#xA;  position: absolute;&#xA;  top: -9999px;&#xA;  left: -9999px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>More on curly quotes--Code Samples are Clean</title>
      <link>https://www.html5in24hours.com/errata/more-on-curly-quotes-code-samples-are-clean/</link>
      <pubDate>Thu, 21 Mar 2013 06:07:53 +0000</pubDate>
      <guid>https://www.html5in24hours.com/errata/more-on-curly-quotes-code-samples-are-clean/</guid><description>&lt;h2 id=&#34;from-sams-teach-yourself-html5-mobile-application-development-in-24-hours&#34;&gt;from: Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours&lt;/h2&gt;&#xA;&lt;p&gt;Unfortunately the curly quotes crept into the downloadable &lt;a href=&#34;https://www.html5in24hours.com/code-samples/&#34;&gt;code samples&lt;/a&gt; as well as the ebook. Unfortunately, I can&amp;rsquo;t get the ebook fixed, but I have gone through and done a global search and replace on all the code sample files to put the curly quotes back to straight quotes.&lt;/p&gt;&#xA;&lt;p&gt;I think I&amp;rsquo;m going to dream of curly quotes tonight. :-) Thank goodness for search and replace!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Missing parentheses</title>
      <link>https://www.html5in24hours.com/errata/missing-parentheses/</link>
      <pubDate>Wed, 20 Mar 2013 18:00:38 +0000</pubDate>
      <guid>https://www.html5in24hours.com/errata/missing-parentheses/</guid><description>&lt;h2 id=&#34;from-sams-teach-yourself-html5-mobile-application-development-in-24-hours&#34;&gt;from: Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours&lt;/h2&gt;&#xA;&lt;p&gt;On page 21 in the “Watch Out!” section I wrote that you should add an attribute to your &lt;code&gt;BODY&lt;/code&gt; tag so that your script will run and your CANVAS will show up on the page. But there is some missing code there.&lt;/p&gt;&#xA;&lt;p&gt;It should read:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;body onload=&amp;quot;drawSquare()&amp;quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Curly quotes, straight quotes, and copy/pasting from the ebook</title>
      <link>https://www.html5in24hours.com/errata/curly-quotes-straight-quotes-and-copypasting-from-the-ebook/</link>
      <pubDate>Wed, 20 Mar 2013 00:47:06 +0000</pubDate>
      <guid>https://www.html5in24hours.com/errata/curly-quotes-straight-quotes-and-copypasting-from-the-ebook/</guid><description>&lt;h2 id=&#34;from-sams-teach-yourself-html5-mobile-application-development-in-24-hours&#34;&gt;from: Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours&lt;/h2&gt;&#xA;&lt;p&gt;I am working on an update of the ebook for the extended ebook version (includes videos!) and I would love it if anyone has any errors to report. If you can get them to me (comments, emails, carrier pigeon, whatever!) before the end of March I can get them corrected for the next version.&lt;/p&gt;&#xA;&lt;p&gt;One thing I discovered today is that if you copy and paste code samples directly from the ebook, you may have trouble. Word, as some of you may know, likes curly quotes like “ and ” but PHP (and JavaScript and HTML and almost every other code type) does not like curly quotes. When I wrote the book I turned off curly quotes because of this, but my editors have them on by default, and despite my best efforts some have slipped into the code samples.&lt;/p&gt;&#xA;&lt;p&gt;This shouldn&amp;rsquo;t matter if you&amp;rsquo;re just copying the code by typing it in or if you use the &lt;a href=&#34;https://www.html5in24hours.com/code-samples/tyhtml5-code/&#34;&gt;samples&lt;/a&gt; I&amp;rsquo;ve added to this site (note, not the PDFs). But if you copy and paste from an ebook version, you may run across this problem. It&amp;rsquo;s especially annoying as these quotes are impossible to see in many font faces.&lt;/p&gt;&#xA;&lt;p&gt;I recommend, if you do copy code from the ebook versions, that you do a search and replace across it, replacing &lt;code&gt;“&lt;/code&gt; and &lt;code&gt;”&lt;/code&gt; with &lt;code&gt;&amp;quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m making a note of this in the code samples as I find them in the ebook, but it&amp;rsquo;s very hard to see and I probably won&amp;rsquo;t find all of them. (I wonder if I can search and highlight in the PDF?? hmmmm…)&lt;/p&gt;&#xA;&lt;p&gt;I know it&amp;rsquo;s a problem in the code at the top of page 76 (in the “Making Rollovers with jQuery” section). It should read:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$(&amp;#34;#link1 img&amp;#34;).hover(     &#xA;  function() {&#xA;    this.src = this.src.replace(&amp;#34;_off&amp;#34;,&amp;#34;_on&amp;#34;);&#xA;  },&#xA;  function() {&#xA;    this.src = this.src.replace(&amp;#34;_on&amp;#34;,&amp;#34;_off&amp;#34;);&#xA;  }&#xA;  );&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;a id=&amp;#34;link1&amp;#34; href=&amp;#34;#&amp;#34;&amp;gt;&amp;lt;img src=&amp;#34;images/get-scifi_off.png&amp;#34; alt=&amp;#34;Get Science Fiction!&amp;#34;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Honestly? I really hate Word. I&amp;rsquo;d rather write NOTHING in that editor, because it causes me much more grief than it solves. I&amp;rsquo;m sure my editors would disagree.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Degrees? Radians? Blergh — Errors in the CANVAS Chapter</title>
      <link>https://www.html5in24hours.com/errata/degrees-radians-blergh-error-in-the-book/</link>
      <pubDate>Tue, 21 Aug 2012 01:03:00 +0000</pubDate>
      <guid>https://www.html5in24hours.com/errata/degrees-radians-blergh-error-in-the-book/</guid><description>&lt;h2 id=&#34;from-sams-teach-yourself-html5-mobile-application-development-in-24-hours&#34;&gt;from: Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours&lt;/h2&gt;&#xA;&lt;p&gt;So, I was doing some &lt;code&gt;CANVAS&lt;/code&gt; work today creating circles. And I know that the start and end points of my circle drawings are written in radians, and I know that to get a radian from a degree, I need to convert from degrees with the calculation:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;var radians = (Math.PI/180) * degrees;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But as I was doing the work, the circles weren&amp;rsquo;t acting like I expected them to. I&amp;rsquo;m not sure how I missed this during my edits, but in &lt;a href=&#34;https://www.html5in24hours.com/media/0672334402_ch10.pdf&#34; title=&#34;Hour 10: Drawing with the HTML5 Canvas Element (PDF)&#34;&gt;Hour 10: Drawing with the HTML5 Canvas Element&lt;/a&gt; (which is one of the chapters available &lt;a href=&#34;https://www.html5in24hours.com/freebies/&#34; title=&#34;Teach Yourself HTML5 in 24 Hours—Free Samples&#34;&gt;free&lt;/a&gt; from this site) I stated that in degrees 0° is noon on a clock, but that is wrong.&lt;/p&gt;&#xA;&lt;p&gt;In fact, 0° is 3 o&amp;rsquo;clock. But what is more telling is that degrees then move &lt;em&gt;counter-clockwise&lt;/em&gt; around the clock face. So 90° is noon, 180° is 9 o&amp;rsquo;clock, 270° is 6 o&amp;rsquo;clock and so on.&lt;/p&gt;&#xA;&lt;p&gt;The other error is the implication that 0 radians is a different location than 0°. But in fact, if you do the math, you will see that they are exactly the same. Plugging it into the above formula, you get:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;var radians = (Math.PI/180) * _0_; var radians = 0;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This may not seem like a big deal if all you ever draw are complete circles. But if you&amp;rsquo;re trying to draw a half circle starting at 3 o&amp;rsquo;clock and ending at 9 o&amp;rsquo;clock, you might be very frustrated if you think that would be 90° to 270°. You would still get a half circle, but it would be on the right side of the clock rather than the bottom of the clock.&lt;/p&gt;&#xA;&lt;h3 id=&#34;direction-of-the-arc&#34;&gt;Direction of the Arc&lt;/h3&gt;&#xA;&lt;p&gt;Another error that I found regarding drawing circles on canvas regards the direction the pointer travels when drawing the circle or arc. In the book I stated that the final value of the &lt;code&gt;arc&lt;/code&gt; method was the direction. This is correct, but the values I listed were wrong. It should say that &lt;code&gt;true&lt;/code&gt; means counterclockwise and &lt;code&gt;false&lt;/code&gt; means clockwise.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://www.html5in24hours.com/code-samples/hour10-code.pdf&#34; title=&#34;Code Samples Hour 10&#34;&gt;code&lt;/a&gt; that is included in hour 10 does work correctly, it was just how the code was described that was incorrect.&lt;/p&gt;&#xA;&lt;p&gt;I hope these errors didn&amp;rsquo;t confuse anyone, I will make sure to get this corrected in future editions.&lt;/p&gt;&#xA;&lt;h3 id=&#34;errata-specifics&#34;&gt;Errata Specifics&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;Page 175&lt;/strong&gt; in the second paragraph of the “Drawing Circles” section&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“…and finally the direction to draw either clockwise (&lt;code&gt;true&lt;/code&gt;) or counterclockwise (&lt;code&gt;false&lt;/code&gt;).”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Should read:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“…and finally the direction to draw either counterclockwise (&lt;code&gt;true&lt;/code&gt;) or clockwise (&lt;code&gt;false&lt;/code&gt;).”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Page 175&lt;/strong&gt; in the “By the Way” section titled  “How to Find Start and End Points for Circles and Arcs”&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“Radians do not have the same starting point as degrees (in degrees 0° is noon, but in radians it is not).”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Should read:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“Radians are measured differently than degrees. 1 radian equals about 57.3 degrees, and there are about 6 radians in every circle.”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;</description>
    </item>
    <item>
      <title>Linking to the code samples would help…</title>
      <link>https://www.html5in24hours.com/posts/linking-code-samples/</link>
      <pubDate>Thu, 12 Jan 2012 01:53:50 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/linking-code-samples/</guid><description>&lt;p&gt;Sometimes I am really blind.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://www.html5in24hours.com/the-book/code/&#34; title=&#34;Teach Yourself HTML5 in 24 Hours—Code Samples&#34;&gt;code samples&lt;/a&gt; are both up and linked to in the navigation above. I admit, it’s hard to find them when the link isn’t showing up.&lt;/p&gt;&#xA;&lt;h2 id=&#34;i-am-still-working-on-getting-all-the-exercises-added-and-i-will-have-all-the-full-color-images-live-by-the-end-of-the-week-thanks-for-all-your-patience&#34;&gt;I am still working on getting all the exercises added. And I will have all the full-color images live by the end of the week. Thanks for all your patience!&lt;/h2&gt;&#xA;&lt;h3 id=&#34;comments&#34;&gt;Comments:&lt;/h3&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;%22qmsca@aol.com%22&#34;&gt;Rich Collins&lt;/a&gt; - Jan 1, 2013&lt;/p&gt;&#xA;&lt;p&gt;Hi Jennifer, love your book, excellent tool for learning HTML5 &amp;amp; Mobile. Just 1 query - some of the text in the code samples appears to be in Spanish !. Is this intended ? Regards, Rich&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/&#34; title=&#34;htmljenn@gmail.com&#34;&gt;Jennifer Kyrnin&lt;/a&gt; - Jan 5, 2013&lt;/p&gt;&#xA;&lt;p&gt;@Rich No, the code samples are not supposed to be in Spanish. In a few places, I used placeholder text rather than actual words, but I didn&amp;rsquo;t write anything in Spanish. :-) Do you have a page number or URL I can look at?&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>Hour 11 error found</title>
      <link>https://www.html5in24hours.com/errata/hour-11-error-found/</link>
      <pubDate>Wed, 11 Jan 2012 23:00:23 +0000</pubDate>
      <guid>https://www.html5in24hours.com/errata/hour-11-error-found/</guid><description>&lt;h2 id=&#34;from-sams-teach-yourself-html5-mobile-application-development-in-24-hours&#34;&gt;from: Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours&lt;/h2&gt;&#xA;&lt;p&gt;In Hour 11, Fonts and Typography in HTML5, there is an error in the hyphenation style properties list.&lt;/p&gt;&#xA;&lt;p&gt;The code for hyphenate-limit-last on page 195 should read:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;hyphenate-limit-last: all;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Rather than &lt;code&gt;hyphenation-limit-last&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;And in that same hour, The Guillemets in Table 11.1 are printed as &amp;laquo; and &amp;raquo;. This is also incorrect. Guillemets are a different character from &amp;lt; and &amp;gt;. They should be displayed in the book as « and ».&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Blink and you missed it. TIME element back in the HTML5 spec</title>
      <link>https://www.html5in24hours.com/errata/blink-and-you-missed-it-time-element-back-in-the-html5-spec/</link>
      <pubDate>Sat, 05 Nov 2011 18:10:16 +0000</pubDate>
      <guid>https://www.html5in24hours.com/errata/blink-and-you-missed-it-time-element-back-in-the-html5-spec/</guid><description>&lt;h2 id=&#34;from-sams-teach-yourself-html5-mobile-application-development-in-24-hours&#34;&gt;from: Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours&lt;/h2&gt;&#xA;&lt;p&gt;After a large uproar by designers and developers last week when they removed the HTML5 &lt;code&gt;TIME&lt;/code&gt; element, the W3C recanted and put it back in the spec. So you don&amp;rsquo;t have to replace &lt;code&gt;TIME&lt;/code&gt; with &lt;code&gt;DATA&lt;/code&gt;, but you can if you want to.&lt;/p&gt;&#xA;&lt;p&gt;This corrects last week’s errata post. The book still contains the &lt;code&gt;TIME&lt;/code&gt; element, but does not contain the &lt;code&gt;DATA&lt;/code&gt; element.&lt;/p&gt;&#xA;&lt;p&gt;What&amp;rsquo;s really great is that this shows that the W3C is listening to us. So if there is some other problem with the HTML5 spec, don&amp;rsquo;t be shy—let them know. If enough agree, your change may happen!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>The TIME Element Has Been Removed in Favor of DATA</title>
      <link>https://www.html5in24hours.com/posts/the-time-element-has-been-removed-in-favor-of-data/</link>
      <pubDate>Thu, 03 Nov 2011 00:03:32 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/the-time-element-has-been-removed-in-favor-of-data/</guid><description>&lt;p&gt;As of October 29th there is a new element in HTML5: &lt;code&gt;DATA&lt;/code&gt;. The &lt;code&gt;DATA&lt;/code&gt; element is for defining content that has both human- and computer-readable data. Some examples of this are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Dates and times&lt;/li&gt;&#xA;&lt;li&gt;Numbers&lt;/li&gt;&#xA;&lt;li&gt;Colors&lt;/li&gt;&#xA;&lt;li&gt;Money&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Each of these can be written in a way that a human will understand, while a computer might not. For example, a date can be written December 16th, Dec 16, 12/16/11, 16 December, and many other ways. While it is possible to teach computers to know that all those things are dates and what they meant. So you can set the value of a date on a data element with a standard format that computers can read.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;data value=“2011-12-16”&amp;gt;December 16th&amp;lt;/data&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;With the &lt;code&gt;DATA&lt;/code&gt; element and its required attribute &lt;code&gt;value&lt;/code&gt; you can define data for microformats and microdata as well as for scripts on your web page. The content displays in a format that humans appreciate and the &lt;code&gt;value&lt;/code&gt; attribute has the content in a format that computers can read and use.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-data-element-replaces-the-time-element&#34;&gt;The &lt;code&gt;DATA&lt;/code&gt; Element Replaces the &lt;code&gt;TIME&lt;/code&gt; Element&lt;/h3&gt;&#xA;&lt;p&gt;In the same revision to the HTML5 specification that brought us the &lt;code&gt;DATA&lt;/code&gt; element, it also removed the &lt;code&gt;TIME&lt;/code&gt; element from the specification. While you might be disappointed, this is really a good thing. The &lt;code&gt;TIME&lt;/code&gt; element was limited only to date and time formats and as such had a limited scope. With the &lt;code&gt;DATA&lt;/code&gt; element you can mark up all sorts of things that can be defined in both human- and computer-readable formats, you are not just limited to dates and times.&lt;/p&gt;&#xA;&lt;h3 id=&#34;how-this-affects-the-book&#34;&gt;How This Affects the Book&lt;/h3&gt;&#xA;&lt;p&gt;I submitted my final revision of the book on October 25, 2011—four days before this change went into effect. The book covers the &lt;code&gt;TIME&lt;/code&gt; element, but does not include the &lt;code&gt;DATA&lt;/code&gt; element.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
