<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>HTML5 Tutorials on HTML5 in 24 Hours</title>
    <link>https://www.html5in24hours.com/tags/html5-tutorials/</link>
    <description>HTML5 Tutorials on HTML5 in 24 Hours</description>
    <generator>Hugo</generator>
    <language>en-us</language><copyright>Jennifer Kyrnin</copyright><lastBuildDate>Fri, 19 Aug 2016 17:10:26 +0000</lastBuildDate>
    <atom:link href="https://www.html5in24hours.com/tags/html5-tutorials/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Do Hackers Care About Your Meta CharSet?</title>
      <link>https://www.html5in24hours.com/posts/meta-charset-protects-against-hackers/</link>
      <pubDate>Fri, 19 Aug 2016 17:10:26 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/meta-charset-protects-against-hackers/</guid><description>&lt;p&gt;The other day, I got this question about the meta charset tag in the mail:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“Would you be so kind as to explain to me, in logical terms, how in 7 hecks does the presence of:&lt;br&gt;&#xA;&lt;code&gt;&amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&lt;/code&gt;&lt;br&gt;&#xA;is supposed to affect a &amp;lsquo;hacker attack&amp;rsquo; in accordance to your book?&lt;br&gt;&#xA;I literally cannot imagine hackers caring much about which charset you display on the UI side when attacking.”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is a great question. The book he’s referencing is &lt;a href=&#34;https://www.html5in24hours.com/books/teach-yourself-bootstrap-in-24-hours/&#34;&gt;&lt;em&gt;Sams Teach Yourself Bootstrap in 24 Hours&lt;/em&gt;&lt;/a&gt;, and in it I emphasize the importance of using the meta charset tag and placing it as the first element of your &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; element. But while I explain that leaving it out can leave a page vulnerable to hacks, I don’t explain why. But I will now.&lt;/p&gt;&#xA;&lt;h3 id=&#34;cross-site-scripting-xss-attacks&#34;&gt;Cross-Site Scripting (XSS) Attacks&lt;/h3&gt;&#xA;&lt;p&gt;According to &lt;a href=&#34;https://en.wikipedia.org/wiki/Cross-site_scripting&#34;&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“[a cross-site scripting or XSS attack] injects client-side scripts into web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same-origin policy.”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In other words, a website that has an XSS vulnerability can be hacked.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-utf-7-attack-and-how-to-protect-your-site&#34;&gt;The UTF-7 Attack and How to Protect Your Site&lt;/h3&gt;&#xA;&lt;p&gt;There is an exploit that hackers can use called the UTF-7 XSS attack. They attach content to web forms and other pages that include malicious code encoded as the fake encoding “utf-7.”&lt;/p&gt;&#xA;&lt;p&gt;Web pages that do not have the character set defined are vulnerable and can be attacked with this exploit. This doesn’t mean that every web page without the character set defined are vulnerable, because XSS attacks require other elements like JavaScript or a form. But if a web developer adds those elements to the page in the future, that page could be hacked.&lt;/p&gt;&#xA;&lt;h3 id=&#34;why-define-the-character-set&#34;&gt;Why Define the Character Set?&lt;/h3&gt;&#xA;&lt;p&gt;While it&amp;rsquo;s true that not every page has a cross-site scripting (XSS) vulnerability directly, by getting in the habit of always defining the character set of your web pages, you reduce the risk that you&amp;rsquo;ll forget to do it on a page that could be attacked.&lt;/p&gt;&#xA;&lt;p&gt;It’s also true that many web servers use HTTP requests to define the character set automatically on all pages. But it’s not easy for a web designer to check that. Plus if the server changes or the pages are moved, the new server might not have that feature. By adding the &lt;code&gt;&amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&lt;/code&gt; tag to your &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; element, you ensure that the page has one level of protection without having to do anything else.&lt;/p&gt;&#xA;&lt;p&gt;Note: you don’t have to use the meta tag to define the character set. You can use HTTP on the server, set it with PHP or another scripting language. It doesn’t really matter how you define the character set, as long as it’s set. It’s just easiest for most web developers to do it with the meta tag, because that’s what we have direct access to.&lt;/p&gt;&#xA;&lt;h3 id=&#34;do-i-have-to-use-utf-8-in-the-meta-charset&#34;&gt;Do I Have to Use UTF-8 in the Meta Charset?&lt;/h3&gt;&#xA;&lt;p&gt;It doesn&amp;rsquo;t matter what character set you use, as long as you use a valid one. I like UTF-8 because it includes a huge number of characters so I can write things like ñ and ∫ right in my HTML without having to use character codes. The default character set in HTTP 1.1 is &lt;code&gt;ISO-8859-1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;this-is-not-the-final-word-on-xss-protection&#34;&gt;This is Not the Final Word on XSS Protection&lt;/h3&gt;&#xA;&lt;p&gt;Please do not expect that adding the meta charset tag will protect your site and scripts from all XSS attacks. This is &lt;strong&gt;not&lt;/strong&gt; true. There are many things you need to do to protect your scripts from XSS vulnerabilities. But adding the meta charset tag is a start.&lt;/p&gt;&#xA;&lt;p&gt;XSS is not the only way your website can be hacked, for example the &lt;a href=&#34;https://www.html5in24hours.com/posts/shellshock-exploit-destroy-website/&#34;&gt;Shellshock exploit&lt;/a&gt; that came out a few years ago. Don&amp;rsquo;t think just because you&amp;rsquo;re writing HTML that your web pages cannot be hacked. Always take security seriously, even if, like the questioner, you cannot imagine a way that hackers can attack your pages. Just because you can&amp;rsquo;t imagine it doesn&amp;rsquo;t mean that the hackers can&amp;rsquo;t. And they are imagining new attacks and exploits every day.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>HTML5 Cheat Sheet</title>
      <link>https://www.html5in24hours.com/posts/html5-cheat-sheet/</link>
      <pubDate>Fri, 14 Aug 2015 22:08:43 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/html5-cheat-sheet/</guid><description>&lt;p&gt;I built an HTML5 cheat sheet for myself, so that I could make sure that my tag libraries were up-to-date and so on. And then when I finished, I realized that this might be something you would like too.&lt;/p&gt;&#xA;&lt;p&gt;It is a PDF file listing all the HTML5 elements, what they are and whether they are new, changed, the same as HTML 4 or gone from the specification (and what you should use instead). I hope you like it!&lt;/p&gt;&#xA;&lt;h2 id=&#34;html5-cheat-sheet-pdf&#34;&gt;&lt;a href=&#34;https://www.html5in24hours.com/html5-cheat-sheet.pdf&#34; title=&#34;HTML5 Cheat Sheet&#34;&gt;HTML5 Cheat Sheet&lt;/a&gt; PDF&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;%22jimward52@yahoo.com%22&#34;&gt;jim&lt;/a&gt; - Apr 2, 2013&lt;/p&gt;&#xA;&lt;p&gt;Awesome list! Thanks! One minor gripe, though: The section &amp;ldquo;Tags not in HTML5&amp;rdquo; is hard to read due to the dark gray background.&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;jenn@html5in24hours.com&#34;&gt;Jennifer Kyrnin&lt;/a&gt; - May 0, 2013&lt;/p&gt;&#xA;&lt;p&gt;Thanks for the feedback. I&amp;rsquo;ll see if I can fix that.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;%22dorianmattar@me.com%22&#34;&gt;Dorian Mattar&lt;/a&gt; - Nov 1, 2013&lt;/p&gt;&#xA;&lt;p&gt;Thanks for the cheatSheet, but I have a few comments. 1. Although it&amp;rsquo;s a &amp;ldquo;pdf&amp;rdquo;, it&amp;rsquo;s not a searchable pdf as it&amp;rsquo;s an image and not a true pdf. Not so much an issue because it&amp;rsquo;s alpha and only one page, but still it could have been&amp;hellip; 2. The resolution is also not optimum and when magnified for high-resolution monitors, it pixilates. A true pdf would also solve this issue. 3. There is no sample code for each tag, which would make this truly a great cheat sheet. Thanks, Dorian&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;%22billwaddyjr@msn.com%22&#34;&gt;Bill Waddy&lt;/a&gt; - Apr 3, 2014&lt;/p&gt;&#xA;&lt;p&gt;Thanks for the cheat sheet.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;%22viraj.lathigara@gmail.com%22&#34;&gt;Viraj Lathigara&lt;/a&gt; - Mar 4, 2016&lt;/p&gt;&#xA;&lt;p&gt;Thank you very much for this cheat sheet ! It had been very helpful to me and my friends ! Its my humble request to you to provide one more thing, We want sample codes for each and every tag. Hope you will help us !&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>The Lazy Way to Mobile-Friendly</title>
      <link>https://www.html5in24hours.com/posts/the-lazy-way-to-mobile-friendly/</link>
      <pubDate>Sat, 18 Apr 2015 17:26:23 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/the-lazy-way-to-mobile-friendly/</guid><description>&lt;h2 id=&#34;or-how-i-made-a-simple-change-on-a-bootstrap-site-to-please-google&#34;&gt;Or How I Made a Simple Change on a Bootstrap Site to Please Google&lt;/h2&gt;&#xA;&lt;p&gt;Like most web designers I know, I am frantically trying to get many websites mobile-friendly in time for &lt;a href=&#34;http://googlewebmastercentral.blogspot.com/2015/02/finding-more-mobile-friendly-search.html&#34;&gt;Google’s deadline of April 21st&lt;/a&gt;. Knowing that &lt;a href=&#34;http://getbootstrap.com/&#34;&gt;Bootstrap&lt;/a&gt; is a very mobile-friendly framework, I have been migrating a lot of the sites I manage into it. This has worked great, but as the deadline looms ever nearer, I have been cutting more corners in getting the sites ready.&lt;/p&gt;&#xA;&lt;p&gt;And at this point, most of the sites that I’ve left hanging are my own.&lt;/p&gt;&#xA;&lt;p&gt;So today, I decided to check my branding site &lt;a href=&#34;http://htmljenn.com/&#34;&gt;http://htmljenn.com/&lt;/a&gt;. And as I suspected, even with Bootstrap, it came up as not friendly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/screenshot515-300x262.jpg&#34; alt=&#34;Not Mobile Friendly&#34;&gt;](/images/screenshot515.jpg) I knew that header image was too big!&lt;/p&gt;&#xA;&lt;p&gt;As you can see from the picture, my headline graphic is way too large for most mobile screens. I knew this, but I was probably hoping it would fix itself overnight or something. It didn’t.&lt;/p&gt;&#xA;&lt;p&gt;Luckily, Bootstrap offers a feature that makes it easy to get rid of the offending graphic (for now) and replace it with text that is mobile-friendly: The Bootstrap responsive utility classes.&lt;/p&gt;&#xA;&lt;p&gt;There are 16 classes you can use in Bootstrap to show and hide content from different sized devices. They are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-xs-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-sm-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-md-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-lg-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-xs&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-sm&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-lg&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You may notice that I only listed eight classes above. That’s because the &lt;code&gt;.visible&lt;/code&gt; classes each have three variations:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-*-block&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-*-inline&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-*-inline-block&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Since I realized that most likely the real problem with the mobile site was that the banner image was too big, I decided to hide it (for now) on smaller screens. Instead, I would show them the site title in an &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;p&gt;So I added the &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; site title (&lt;code&gt;&amp;lt;h1&amp;gt;HTMLJenn&amp;lt;/h1&amp;gt;&lt;/code&gt;) and then added the class &lt;code&gt;.hidden-md&lt;/code&gt; to it. This would hide the site title from any devices of medium size or larger.&lt;/p&gt;&#xA;&lt;p&gt;Then I hid the banner image by adding the class &lt;code&gt;.visible-md-block&lt;/code&gt; to it. This makes it visible only to devices of medium size or larger.&lt;/p&gt;&#xA;&lt;p&gt;After I uploaded these simple changes, I tested on Google and got:&lt;/p&gt;&#xA;&lt;p&gt;[caption id=&amp;ldquo;attachment_1131&amp;rdquo; align=&amp;ldquo;aligncenter&amp;rdquo; width=&amp;ldquo;300&amp;rdquo;]&lt;a href=&#34;https://www.html5in24hours.com/images/screenshot516.jpg&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/screenshot516-300x262.jpg&#34; alt=&#34;Mobile Friendly&#34;&gt;&lt;/a&gt; It’s mobile-friendly!&lt;/p&gt;&#xA;&lt;p&gt;Hooray! My site is mobile-friendly. Now to work on making it look less ugly! But that can wait until I’ve finished fixing all my other sites!&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-to-do-to-make-your-site-mobile-friendly&#34;&gt;What To Do to Make Your Site Mobile Friendly&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.google.com/webmasters/tools/mobile-friendly/&#34;&gt;Test your site&lt;/a&gt; to see if Google feels it is mobile friendly.&lt;/li&gt;&#xA;&lt;li&gt;If it isn’t, don’t panic. &lt;strong&gt;Google will not delist your site.&lt;/strong&gt; This bears repeating. Just because a site is not mobile friendly does &lt;strong&gt;not&lt;/strong&gt; mean that it will not show up in Google search. It just means that when someone on a mobile device searches Google, your site will not rank &lt;em&gt;as well&lt;/em&gt; as a similar site that is mobile friendly.&lt;/li&gt;&#xA;&lt;li&gt;If it isn’t already, add your site to &lt;a href=&#34;https://www.google.com/webmasters/tools/&#34;&gt;Google Webmaster Tools&lt;/a&gt; and follow the instructions in the &lt;a href=&#34;https://developers.google.com/webmasters/mobile-sites/mobile-seo/&#34;&gt;Google Mobile SEO&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;There are many ways you can make your sites more mobile friendly. The Bootstrap framework is one way to get a responsive web design fairly quickly.&lt;/p&gt;&#xA;&lt;h2 id=&#34;more-help-with-bootstrap-mobile-friendly-design-rwd-and-googles-change-to-search-results&#34;&gt;More Help with Bootstrap, Mobile-Friendly Design, RWD, and Google’s Change to Search Results&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Order my book &lt;em&gt;&lt;a href=&#34;http://www.amazon.com/gp/product/0672338386/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0672338386&amp;amp;linkCode=as2&amp;amp;tag=kyrnindesign-20&amp;amp;linkId=EB4FXW6K476IINJB&#34;&gt;Sams Teach Yourself Responsive Web Design in 24 Hours&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Get &lt;a href=&#34;http://getbootstrap.com/&#34;&gt;Bootstrap&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Pre-order &lt;em&gt;&lt;a href=&#34;http://www.amazon.com/gp/product/0672337045/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0672337045&amp;amp;linkCode=as2&amp;amp;tag=kyrnindesign-20&amp;amp;linkId=EP4DRO2DWWYNAJSA&#34;&gt;Sams Teach Yourself Bootstrap in 24 Hours&lt;/a&gt;&lt;/em&gt; by Jennifer Kyrnin&lt;/li&gt;&#xA;&lt;li&gt;Read &lt;a href=&#34;http://bradfrost.com/blog/web/mobile-first-responsive-web-design/&#34;&gt;Mobile First Responsive Web Design&lt;/a&gt; by Brad Frost&lt;/li&gt;&#xA;&lt;li&gt;Test your site with the &lt;a href=&#34;https://www.google.com/webmasters/tools/mobile-friendly/&#34;&gt;Google Mobile Friendliness Test&lt;/a&gt; from &lt;a href=&#34;https://www.google.com/webmasters/tools/&#34;&gt;Google Webmaster Tools&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Read &lt;a href=&#34;http://googlewebmastercentral.blogspot.com/2015/02/finding-more-mobile-friendly-search.html&#34;&gt;Finding More Mobile Friendly Search Results&lt;/a&gt; from Google Webmaster Central&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>How to Speed Up Your Website with GZip Compression</title>
      <link>https://www.html5in24hours.com/posts/gzip-compression/</link>
      <pubDate>Wed, 17 Sep 2014 18:25:22 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/gzip-compression/</guid><description>&lt;p&gt;If you follow the instructions on the &lt;a href=&#34;https://developer.yahoo.com/yslow/&#34;&gt;Yahoo! YSlow&lt;/a&gt; best practices, one of them is to compress your pages using gzip compression (“&lt;a href=&#34;https://developer.yahoo.com/performance/rules.html#gzip&#34;&gt;Gzip components&lt;/a&gt;”). By doing this, you compress all your files before they are sent across the web, and then the browser decompresses them on the other side. This can significantly improve the time it takes your website to load.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-to-compress-a-website-with-gzip-and-htaccess&#34;&gt;How to Compress a Website with GZip and HTaccess&lt;/h2&gt;&#xA;&lt;p&gt;First check that your site is not already compressed. Some hosting providers do this automatically.&lt;/p&gt;&#xA;&lt;p&gt;Go to &lt;a href=&#34;http://www.gidnetwork.com/tools/gzip-test.php&#34;&gt;GID Zip Test&lt;/a&gt; and enter your URL. If it returns that your site is compressed, you&amp;rsquo;re done.&lt;/p&gt;&#xA;&lt;p&gt;[caption id=&amp;ldquo;attachment_892&amp;rdquo; align=&amp;ldquo;alignnone&amp;rdquo; width=&amp;ldquo;300&amp;rdquo;]&lt;a href=&#34;https://www.html5in24hours.com/images/screenshot333.jpg&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/screenshot333-300x82.jpg&#34; alt=&#34;GID Zip Test&#34;&gt;&lt;/a&gt; This site is compressed&lt;/p&gt;&#xA;&lt;p&gt;If your site is not compressed, you need to know what web server you&amp;rsquo;re using. If you&amp;rsquo;re not sure, ask your hosting provider, but the most common web server is Apache. Chances are, that is what your site uses too.&lt;/p&gt;&#xA;&lt;h3 id=&#34;compress-files-on-apache&#34;&gt;Compress Files on Apache&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Go to the root directory of your web server and edit the &lt;code&gt;.htaccess&lt;/code&gt; file in a text editor. If you can&amp;rsquo;t see that file, first make sure that hidden files are visible and if it&amp;rsquo;s still not there, then you should create a file with that name—&lt;em&gt;including the dot (.) at the beginning of the file&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Add the following lines to the file:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\# gzip compress text, HTML, JavaScript, CSS, and XML&#xA;AddOutputFilterByType DEFLATE text/plain&#xA;AddOutputFilterByType DEFLATE text/html&#xA;AddOutputFilterByType DEFLATE text/xml&#xA;AddOutputFilterByType DEFLATE text/css&#xA;AddOutputFilterByType DEFLATE application/xml&#xA;AddOutputFilterByType DEFLATE application/xhtml+xml&#xA;AddOutputFilterByType DEFLATE application/rss+xml&#xA;AddOutputFilterByType DEFLATE application/javascript&#xA;AddOutputFilterByType DEFLATE application/x-javascript&#xA;# remove browser bugs&#xA;BrowserMatch ^Mozilla/4 gzip-only-text/html&#xA;BrowserMatch ^Mozilla/4\\.0\[678\] no-gzip&#xA;BrowserMatch \\bMSIE !no-gzip !gzip-only-text/html&#xA;Header append Vary User-Agent&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Upload the &lt;code&gt;.htaccess&lt;/code&gt; file to the same location on your website (typically the root folder).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Test your site again using the GID Zip Test site.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;if-your-apache-site-still-isnt-compressed&#34;&gt;If Your Apache Site Still Isn&amp;rsquo;t Compressed&lt;/h3&gt;&#xA;&lt;p&gt;Many hosting providers use virtual hosts for web hosting, and sometimes these don&amp;rsquo;t always recognize all commands in the &lt;code&gt;.htaccess&lt;/code&gt; file. Your best bet is to talk to your hosting support to see if they can get it running. They will probably have to add the above lines (in step 2) into the &lt;code&gt;httpd.conf&lt;/code&gt; or &lt;code&gt;vhosts.conf&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;h3 id=&#34;compress-files-on-iis&#34;&gt;Compress Files on IIS&lt;/h3&gt;&#xA;&lt;h2 id=&#34;i-dont-have-an-iis-server-so-i-cannot-tell-you-exactly-how-to-do-it-but-microsoft-has-a-comprehensive-technet-document-configuring-http-compression-in-iis-7-that-covers-configuring-compression-enabling-compression-of-dynamic-content-and-enabling-compression-of-static-content&#34;&gt;I don&amp;rsquo;t have an IIS server, so I cannot tell you exactly how to do it, but Microsoft has a comprehensive Technet document: &lt;a href=&#34;http://technet.microsoft.com/en-us/library/cc771003%28WS.10%29.aspx&#34;&gt;Configuring HTTP Compression in IIS 7&lt;/a&gt; that covers: &lt;a href=&#34;http://technet.microsoft.com/en-us/library/cc730629(v=ws.10).aspx&#34;&gt;configuring compression&lt;/a&gt;, &lt;a href=&#34;http://technet.microsoft.com/en-us/library/cc753681(v=ws.10).aspx&#34;&gt;enabling compression of dynamic content&lt;/a&gt;, and &lt;a href=&#34;http://technet.microsoft.com/en-us/library/cc754668(v=ws.10).aspx&#34;&gt;enabling compression of static content&lt;/a&gt;.&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;http://www.carolinawebdeveloper.com/&#34; title=&#34;earlgunner@earlmoorejr.com&#34;&gt;Earl&lt;/a&gt; - Sep 4, 2014&lt;/p&gt;&#xA;&lt;p&gt;Compression makes a world of a difference on page speed. I use Gzip on my own sites and average about a 61% reduction rate. Never knew about the GID Zip Test tool though, thanks for sharing.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>What Semantics Means in HTML and Why You Should Care</title>
      <link>https://www.html5in24hours.com/posts/what-is-semantic-html/</link>
      <pubDate>Tue, 09 Sep 2014 21:20:21 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/what-is-semantic-html/</guid><description>&lt;p&gt;Once you’ve been writing HTML for a while, you may come across the term “semantic HTML.” But what does that really mean?&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-semantics&#34;&gt;What is Semantics?&lt;/h2&gt;&#xA;&lt;p&gt;You may have heard the phrase “that’s just semantics” used as a way to dismiss an argument or otherwise minimize the importance of something someone says, but semantics can be important to your website. Understanding semantics as it applies to HTML can save you time and money in the long run.&lt;/p&gt;&#xA;&lt;p&gt;In web design, semantics is concerned with the meaning of the tags and attributes that you use to build your web pages. In other words, semantic HTML is HTML that contains meaning in and of itself, beyond any content that it might be marking up. Semantic HTML lets the browser understand what the tag contains, and so will you.&lt;/p&gt;&#xA;&lt;p&gt;Here is a hypothetical example of HTML if it were written with all the tags differentiated by numbers:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;!tag1&amp;gt;&#xA;&amp;lt;tag2&amp;gt;&#xA;  &amp;lt;tag3&amp;gt;&#xA;    &amp;lt;tag4&amp;gt;Now is the Time&amp;lt;/tag4&amp;gt;&#xA;  &amp;lt;/tag3&amp;gt;&#xA;  &amp;lt;tag5&amp;gt;&#xA;    &amp;lt;tag6&amp;gt;Now is the Time&amp;lt;/tag6&amp;gt;&#xA;    &amp;lt;tag7&amp;gt;For all good people…&amp;lt;/tag7&amp;gt;&#xA;  &amp;lt;/tag5&amp;gt;&#xA;&amp;lt;/tag2&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This is pretty difficult to understand, right? Web browsers could have been programmed to read the above faux HTML just as easily as they read real HTML.&lt;/p&gt;&#xA;&lt;p&gt;Here’s the same web page written in real HTML:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;!doctype html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;  &amp;lt;head&amp;gt;&#xA;    &amp;lt;title&amp;gt;Now is the Time&amp;lt;/title&amp;gt;&#xA;  &amp;lt;/head&amp;gt;&#xA;  &amp;lt;body&amp;gt;&#xA;    &amp;lt;h1&amp;gt;Now is the Time&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;p&amp;gt;For all good people…&amp;lt;/p&amp;gt;&#xA;  &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This is much easier to read and understand, even if you don’t know HTML. You can make guesses about what the content is because of the HTML tags surrounding it. Let’s look at it line by line:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 1: &lt;code&gt;&amp;lt;!doctype html&amp;gt;&lt;/code&gt;&lt;/strong&gt; You may not know what the word “doctype” means, but if you were to guess, you might think it meant “document type” and this is followed by HTML. So this line probably means that the document is an HTML document.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 2: &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;&lt;/strong&gt; Even if you didn’t understand the first line, this line confirms that we’re working with an HTML document.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 3: &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/strong&gt; This may not be clear immediately, but it obviously means something to do with the “head” of the document, perhaps the brains.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 4: &lt;code&gt;&amp;lt;title&amp;gt;Now is the Time&amp;lt;/title&amp;gt;&lt;/code&gt;&lt;/strong&gt; This is the first really semantic tag you see in the document, even though the above tags are reasonably understandable. It’s clear that the title of the document is “Now is the Time.” This line also gives you a clue as to how HTML is structured, as you can see the closing tag right there.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 5: &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;&lt;/strong&gt; We learned about closing tags in line 4, so it’s clear that this is the end of the head information for the page.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 6: &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;&lt;/strong&gt; This is probably the beginning of the main focus or body of the web page.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 7: &lt;code&gt;&amp;lt;h1&amp;gt;Now is the Time&amp;lt;/h1&amp;gt;&lt;/code&gt;&lt;/strong&gt; This is a repetition of the title, but the tags surrounding the text aren’t terribly clear. Once you understand HTML you’ll recognize this as a level 1 headline, but the semantics are poor on this tag.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 8: &lt;code&gt;&amp;lt;p&amp;gt;For all good people…&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;/strong&gt; This is another tag that you will recognize as semantic once you know HTML better. And it might be more obvious what it is in a longer page with more of them. This is a paragraph tag. It might have been more semantic if it was written &lt;code&gt;&amp;lt;paragraph&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 9: &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt;&lt;/strong&gt; Here we have the end of the body of the page.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Line 10: &lt;code&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/strong&gt; And finally the end of the document itself.&lt;/p&gt;&#xA;&lt;p&gt;As you can see, a tag like &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; has a lot more meaning in and of itself than &lt;code&gt;&amp;lt;tag5&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This is semantic HTML. Semantic HTML is HTML that provides meaning to the content it contains.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-is-semantics-important-for-html&#34;&gt;Why is Semantics Important for HTML?&lt;/h2&gt;&#xA;&lt;p&gt;Semantic HTML makes your web pages easier to read and understand. While most of your customers won’t ever see the HTML tags, the browsers will and they can make adjustments based on the tags to make the content display more effectively.&lt;/p&gt;&#xA;&lt;p&gt;For example, in HTML 4, you could only embed video and audio using non-semantic &lt;code&gt;&amp;lt;object&amp;gt;&lt;/code&gt; tags. The browser knew that the element was an object of some type, but not what it was.&lt;/p&gt;&#xA;&lt;p&gt;An object could be almost anything, and the browser wouldn’t know until it started to try and display it. But with the new semantic &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt; tags the browser will know immediately what it has to download. If the browser doesn’t support video, it knows before it starts to download the file, which saves the customer time.&lt;/p&gt;&#xA;&lt;p&gt;But semantics can also save you money. Web pages need to change to stay current. When a page is marked up semantically the next web designer to edit it can tell almost at a glance what the page has on it, without needing to read any of the content. This saves time, and gets the designs built more quickly, which saves money.&lt;/p&gt;&#xA;&lt;p&gt;Plus, just like browsers, web designers can use semantic HTML to design their pages better. If you have code samples in your documents, you can add line numbers to them automatically if you use the &lt;code&gt;&amp;lt;code&amp;gt;&lt;/code&gt; tag around them. You can put gorgeous graphical quotation marks around &lt;code&gt;&amp;lt;blockquote&amp;gt;&lt;/code&gt; elements.&lt;/p&gt;&#xA;&lt;p&gt;And there will probably be additional features that come out in the future for semantic elements. For instance, a tag like &lt;code&gt;&amp;lt;address type=&amp;quot;skype&amp;quot;&amp;gt;&lt;/code&gt; might allow for direct video calls embedded in web pages. Using semantic HTML tags future-proof your web designs and ensure that your meaning is understood.&lt;/p&gt;&#xA;&lt;h2 id=&#34;semantic-html-tags-in-html5&#34;&gt;Semantic HTML Tags in HTML5&lt;/h2&gt;&#xA;&lt;p&gt;The following table shows the semantic tags in HTML5.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_abbr.htm&#34;&gt;&lt;code&gt;&amp;lt;abbr&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Abbreviation&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/library/tags/bltags-address.htm&#34;&gt;&lt;code&gt;&amp;lt;address&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Address of the authors of the document&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_article.htm&#34;&gt;&lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Article&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_aside.htm&#34;&gt;&lt;code&gt;&amp;lt;aside&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Tangential or content that is loosely related to the main content&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/audio-tag.htm&#34;&gt;&lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Audio or sound file&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/blockquote-tag.htm&#34;&gt;&lt;code&gt;&amp;lt;blockquote&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Long quotation&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_body.htm&#34;&gt;&lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Body of the document&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_button.htm&#34;&gt;&lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Button or input tag&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_canvas.htm&#34;&gt;&lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Canvas for animation or scripted content&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_cite.htm&#34;&gt;&lt;code&gt;&amp;lt;cite&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Citation&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_code.htm&#34;&gt;&lt;code&gt;&amp;lt;code&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Code reference&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_col.htm&#34;&gt;&lt;code&gt;&amp;lt;col&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Column in a table&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;colgroup&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Group of columns&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_datalist.htm&#34;&gt;&lt;code&gt;&amp;lt;datalist&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;List of data for use in forms&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_del.htm&#34;&gt;&lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Deleted text&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_dfn.htm&#34;&gt;&lt;code&gt;&amp;lt;dfn&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Definition&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_em.htm&#34;&gt;&lt;code&gt;&amp;lt;em&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Emphasis&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_figure.htm&#34;&gt;&lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Figure&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_footer.htm&#34;&gt;&lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Footer&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_headings.htm&#34;&gt;&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;First level headline&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_headings.htm&#34;&gt;&lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Second level headline&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_headings.htm&#34;&gt;&lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Third level headline&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_headings.htm&#34;&gt;&lt;code&gt;&amp;lt;h4&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Fourth level headline&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_headings.htm&#34;&gt;&lt;code&gt;&amp;lt;h5&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Fifth level headline&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_headings.htm&#34;&gt;&lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Sixth level headline&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_head.htm&#34;&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Head of the document&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_header.htm&#34;&gt;&lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Header&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_hr.htm&#34;&gt;&lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Thematic break&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_html.htm&#34;&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;HTML&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_ins.htm&#34;&gt;&lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Inserted text&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_kbd.htm&#34;&gt;&lt;code&gt;&amp;lt;kbd&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Text to be entered by the user&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_label.htm&#34;&gt;&lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Label&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_legend.htm&#34;&gt;&lt;code&gt;&amp;lt;legend&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Legend&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Content that has been marked in some way&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;menu&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Menu&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;meter&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;A scalar measure&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_output.htm&#34;&gt;&lt;code&gt;&amp;lt;output&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Form output&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_p.htm&#34;&gt;&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Paragraph&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_pre.htm&#34;&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Pre-formatted text&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_progress.htm&#34;&gt;&lt;code&gt;&amp;lt;progress&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Progress bar&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_q.htm&#34;&gt;&lt;code&gt;&amp;lt;q&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Short inline quotation&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_ruby.htm&#34;&gt;&lt;code&gt;&amp;lt;ruby&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Ruby annotation&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_s.htm&#34;&gt;&lt;code&gt;&amp;lt;s&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Strikethrough&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_samp.htm&#34;&gt;&lt;code&gt;&amp;lt;samp&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Sample output&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/bltags_section.htm&#34;&gt;&lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Section&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_small.htm&#34;&gt;&lt;code&gt;&amp;lt;small&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Small text&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_strong.htm&#34;&gt;&lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Strongly emphasized text&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_sub.htm&#34;&gt;&lt;code&gt;&amp;lt;sub&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Subscript&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/summary-tag.htm&#34;&gt;&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Summary&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_sup.htm&#34;&gt;&lt;code&gt;&amp;lt;sup&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Superscript&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_title.htm&#34;&gt;&lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Title&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/htmltags/p/bltags_var.htm&#34;&gt;&lt;code&gt;&amp;lt;var&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Variable or user defined text&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://webdesign.about.com/od/html5tags/p/video-html5-tag.htm&#34;&gt;&lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Video&lt;/p&gt;&#xA;&lt;hr&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;http://www.pixelkiosk.com&#34; title=&#34;atish@pixelkiosk.com&#34;&gt;Atish&lt;/a&gt; - Sep 4, 2014&lt;/p&gt;&#xA;&lt;p&gt;very well explained. I didn&amp;rsquo;t know some of the tags, thanks for providing the list.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://www.htmljenn.com/&#34; title=&#34;jenn@html5in24hours.com&#34;&gt;Jennifer Kyrnin&lt;/a&gt; - Sep 4, 2014&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;re welcome. I&amp;rsquo;m glad you found it useful.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>Basics of HTML5</title>
      <link>https://www.html5in24hours.com/posts/html5-basics/</link>
      <pubDate>Mon, 07 Jul 2014 13:00:15 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/html5-basics/</guid><description>&lt;p&gt;HTML5 is no more difficult to learn than any other version of HTML. But there are a few things you can do to make it easier and more cost-effective to using it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;start-with-the-doctype&#34;&gt;Start with the Doctype&lt;/h3&gt;&#xA;&lt;p&gt;The easiest way to start using HTML5 is to change the doctype you use in your documents. You can do this by simply making the first line of your HTML documents read:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;doctype html&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But if you use a WYSIWYG editor, you can also change it there. For example, in Dreamweaver CC, in the &amp;ldquo;New Document&amp;rdquo; window, you can choose HTML5 as the DocType from one of several choices. &lt;a href=&#34;https://www.html5in24hours.com/images/dreamweaver-html5-doctype.png&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/dreamweaver-html5-doctype-300x167.png&#34; alt=&#34;Dreamweaver Using HTML5 Doctype&#34;&gt;&lt;/a&gt; How to add the HTML5 doctype to a new Dreamweaver document  In the CoffeeCup Web Editor, you use the template &amp;ldquo;HTML 5&amp;rdquo; when you&amp;rsquo;re opening a new document to create a new HTML5 document. &lt;a href=&#34;https://www.html5in24hours.com/images/coffeecup-web-editor-html5-doctype.png&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/coffeecup-web-editor-html5-doctype-300x126.png&#34; alt=&#34;CofeeCup Web Editor Using HTML5 Doctype&#34;&gt;&lt;/a&gt; How to add the HTML5 doctype to a CoffeeCup Web Editor page  And many web editors these days default to HTML5. If you&amp;rsquo;re using an editor like Tummult Hype, Macaw, or CoffeeCup Responsive Design Layout Maker Pro you don&amp;rsquo;t have to worry about the doctype, as these editors use HTML5 automatically. &lt;a href=&#34;https://www.html5in24hours.com/images/hype-rlmp-macaw-html5-doctype.png&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/hype-rlmp-macaw-html5-doctype-300x192.png&#34; alt=&#34;Hype, Responsive Layout Maker, Macaw&#34;&gt;&lt;/a&gt; Many modern web editors use HTML5 automatically.&lt;/p&gt;&#xA;&lt;h3 id=&#34;your-first-html5-document&#34;&gt;Your First HTML5 Document&lt;/h3&gt;&#xA;&lt;p&gt;As I said above, all you need to have an HTML5 document is the correct doctype. But there are a few other tags that can help. Here&amp;rsquo;s a really basic HTML5 template that I start all my web pages with:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;!doctype html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;  &amp;lt;head&amp;gt;&#xA;    &amp;lt;meta charset=&amp;#34;utf-8&amp;#34;&amp;gt;&#xA;    &amp;lt;title&amp;gt;&#xA;      My Title&#xA;    &amp;lt;/title&amp;gt;&#xA;  &amp;lt;/head&amp;gt;&#xA;  &amp;lt;body&amp;gt;&#xA;    Content goes here&#xA;  &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Change the highlighted lines to your own content&lt;/p&gt;&#xA;&lt;h3 id=&#34;html5-is-an-improvement-to-html-401&#34;&gt;HTML5 is an Improvement to HTML 4.01&lt;/h3&gt;&#xA;&lt;p&gt;One question I get asked all the time is how difficult is it to learn HTML5 if you already know HTML 4.01 or any other version of HTML. The great news is that &lt;strong&gt;HTML5 isn&amp;rsquo;t really all that different from HTML 4.01&lt;/strong&gt;. In fact, if all you do is add the doctype listed above and then writing your pages exactly as you did before, you will have joined the millions of designers using HTML5.&lt;/p&gt;&#xA;&lt;p&gt;But one of the reasons to use HTML5 is because of all the improvements there are in it. There are dozens of new tags that add more functionality to your pages. None of the new tags are absolutely critical to any web page, but they add useful features that can enhance your pages and make them more useful to your customers.&lt;/p&gt;&#xA;&lt;p&gt;Some of the tags I find most useful include:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The sectioning tags: &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;, etc.&lt;/li&gt;&#xA;&lt;li&gt;Text semantics tags like &lt;code&gt;&amp;lt;data&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;time&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Embedded content: &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;, and &lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;The new forms tags and attributes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Learn about &lt;a href=&#34;https://www.html5in24hours.com/posts/new-html5-elements/&#34;&gt;all the new HTML5 tags&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;scripting-apis-give-you-so-much-more-to-do-on-your-sites&#34;&gt;Scripting APIs Give You So Much More to Do On Your Sites&lt;/h3&gt;&#xA;&lt;p&gt;HTML5 offers a bunch of new APIs or application programming interfaces to help designers and developers offer more features on your websites.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://www.w3.org/TR/html5/webappapis.html&#34;&gt;Web Application APIs&lt;/a&gt;—these let your web pages act more like applications on a computer or tablet. There is support for error handling and events and can make your pages more interactive and useful.&lt;/li&gt;&#xA;&lt;li&gt;Video and audio APIs—with more than just the &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt; tags, the new APIs help you to play back video and audio that are embedded directly in your web pages.&lt;/li&gt;&#xA;&lt;li&gt;Offline web applications—this API helps you store information so that a customer using your web application on a mobile device doesn&amp;rsquo;t have to be connected to the internet to use the application.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Contenteditable&lt;/code&gt;—While Internet Explorer has supported this attribute for a few years, HTML5 has added an API to support it more widely.&lt;/li&gt;&#xA;&lt;li&gt;Drag and Drop—This is a functionality that desktop applications have had for years, but until recently, web designers were stuck fiddling and futzing with different scripts to get drag and drop to work.&lt;/li&gt;&#xA;&lt;li&gt;History API—Most people don&amp;rsquo;t understand the value of the History API because it&amp;rsquo;s not a visible functionality. But this API can make your web applications work more effectively by giving URIs to dynamic pages that don&amp;rsquo;t have URLs and changing the visible URL or any URIs in the history of the browser.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;where-to-learn-more-about-html5&#34;&gt;Where to Learn More About HTML5&lt;/h3&gt;&#xA;&lt;p&gt;There are lots of places online to learn HTML5, these are some of my favorite resources:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://www.html5rocks.com/&#34;&gt;http://www.html5rocks.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://diveintohtml5.info/&#34;&gt;http://diveintohtml5.info/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://www.w3schools.com/html5/html5_reference.asp&#34;&gt;https://www.w3schools.com/Tags/default.asp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And of course, you can learn all about HTML5 from my book: &lt;a href=&#34;https://www.html5in24hours.com/books/the-book/&#34;&gt;&lt;em&gt;Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours&lt;/em&gt;&lt;/a&gt;.&lt;br&gt;&#xA;&lt;a href=&#34;https://www.html5in24hours.com/books/the-book/&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/9780132853293_s-final.jpg&#34; alt=&#34;Buy Now: Teach Yourself HTML5 Mobile Application Development in 24 Hours&#34; title=&#34;Buy your copy today&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Not all design testing tools are created equal</title>
      <link>https://www.html5in24hours.com/posts/design-testing-tools-created-equal/</link>
      <pubDate>Fri, 16 May 2014 19:45:01 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/design-testing-tools-created-equal/</guid><description>&lt;p&gt;I&amp;rsquo;ve noticed lately a proliferation of websites like &lt;a href=&#34;http://thecustomizewindows.com/responsive/&#34;&gt;Responsive Design Testing Tool&lt;/a&gt; which claim to offer a way to test your responsive web designs in different browser or device widths. I happily began testing some of the pages I design and noticed that they didn&amp;rsquo;t look right—the designs weren&amp;rsquo;t responding to the width. After checking my CSS @media queries for errors I had an idea. &lt;strong&gt;Check the page on my iPhone.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/bad-responsive-design-testing-1024x507.png&#34; alt=&#34;A bad way to test responsive designs&#34;&gt; Do you notice anything interesting about these four renderings?&lt;/p&gt;&#xA;&lt;p&gt;If you go to the Responsive Design Testing Tool and put in a web page you know is responsive, you might notice something like what I saw in the screen shot above. What you&amp;rsquo;re seeing is the About.com home page rendered in four iframes at the four listed dimensions. If you look closely, you&amp;rsquo;ll notice that all four images in the frames are exactly the same size. This is because while the iframes loading the page are set to the width and height of the devices, the pages are rendering based on the browser window itself, not the iframe widths.&lt;/p&gt;&#xA;&lt;p&gt;When I viewed the page on my iPhone the responsive features kicked in as they were supposed to and I saw the page as it was supposed to look.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/testing-page-on-iphone-200x300.png&#34; alt=&#34;Testing on the Device Gives Better Results&#34;&gt; Here&amp;rsquo;s what the page looks like on a &lt;em&gt;real&lt;/em&gt; iPhone&lt;/p&gt;&#xA;&lt;p&gt;As you can see, on a real iPhone the About.com logo is smaller and on the black background. The navigation has been reduced down to the &lt;img src=&#34;https://www.html5in24hours.com/images/navigation-icon-example.png&#34; alt=&#34;navigation icon example&#34;&gt; icon. The headline and image are both fully visible. And there is no horizontal scrolling required. In other words, About.com modified the layout responsively based on the viewport of the iPhone.&lt;/p&gt;&#xA;&lt;h3 id=&#34;be-wary-of-online-emulators&#34;&gt;Be Wary of Online Emulators&lt;/h3&gt;&#xA;&lt;p&gt;There are a number of sites like the Responsive Design Testing Tool that claim to be RWD testing tools, but in reality they are just iframe page loaders. And because most pages take their cue from the device window rather than a width set on an HTML element like an iframe, they just show the page as it would look on the browser it&amp;rsquo;s in.&lt;/p&gt;&#xA;&lt;p&gt;I decided for the hell of it to see how About.com&amp;rsquo;s page would render in the iframes of the Responsive Testing Tool on my iPhone. Below is the result:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/testing-tool-viewing-about-on-iPhone-213x1024.png&#34; alt=&#34;How it renders on an iPhone&#34;&gt; The Responsive Design Testing Tool on an iPhone&lt;/p&gt;&#xA;&lt;p&gt;The immediate red flag for me when viewing this site on my iPhone was that the testing tool page itself made no effort to be responsive. You could argue that that&amp;rsquo;s because it really needs to be viewed on a desktop browser, but it was very difficult to scroll horizontally to see any of the iframes other than the 240x320 (small phone) frame. Other things I noticed were that the URL field did not use the URL input field, which made it slightly tougher to type in on my iPhone and it cut off the iframe completely on the right as you can see in the screen shot on the left.&lt;/p&gt;&#xA;&lt;p&gt;All in all I wouldn&amp;rsquo;t trust this tool to do any testing on my websites. I&amp;rsquo;d be better off doing only testing on my browser and not worrying about mobile devices.&lt;/p&gt;&#xA;&lt;h3 id=&#34;what-can-you-use&#34;&gt;What Can You Use?&lt;/h3&gt;&#xA;&lt;p&gt;While online emulators might not be the best solution for testing responsive websites, you can use them to test non-responsive sites to see how your pages might render on a smaller screen device.&lt;/p&gt;&#xA;&lt;p&gt;Another option you have for testing is to use an emulator. You can get an &lt;a href=&#34;https://developer.apple.com/devcenter/ios/index.action&#34;&gt;iPhone emulator from Apple&lt;/a&gt; and an &lt;a href=&#34;http://developer.android.com/sdk/index.html&#34;&gt;Android emulator from Android&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;want-to-learn-more-about-responsive-web-design&#34;&gt;Want to Learn more about Responsive Web Design?&lt;/h3&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://responsivewebdesignin24hours.com/&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/9780672338380-150x150.jpg&#34; alt=&#34;Sams Teach Yourself Responsive Web Design with HTML5 and CSS3 in 24 Hours&#34;&gt;&lt;/a&gt; Available Oct 2014&lt;/p&gt;&#xA;&lt;h2 id=&#34;i-am-writing-a-book-on-responsive-web-designresponsive-web-design-with-html5-and-css3-in-24-hours-sams-teach-yourself-it-is-available-now-for-pre-order-on-amazon-and-other-places-where-books-are-sold&#34;&gt;I am writing a book on responsive web design &lt;a href=&#34;http://www.amazon.com/gp/product/0672338386/ref=as_li_qf_sp_asin_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0672338386&amp;amp;linkCode=as2&amp;amp;tag=kyrnindesign-20&#34;&gt;&lt;em&gt;Responsive Web Design with HTML5 and CSS3 in 24 Hours, Sams Teach Yourself&lt;/em&gt;&lt;/a&gt;&lt;img src=&#34;http://ir-na.amazon-adsystem.com/e/ir?t=kyrnindesign-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0672338386&#34; alt=&#34;&#34;&gt;. It is available now for pre-order on Amazon and other places where books are sold.&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;http://na&#34; title=&#34;david@wellock.org&#34;&gt;David W&lt;/a&gt; - May 4, 2014&lt;/p&gt;&#xA;&lt;p&gt;Thank you. I have been saying this for months. the problem seems to be the difference between max-width and max-device-width. If the latter is set, then the page will not render correctly in an iFrame set to a pixel size. I&amp;rsquo;m not sure it&amp;rsquo;s possible to fool the browser engine to accept a different screen size, the way you can fake a User Agent String. Great article Thanks David&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;jenn@html5in24hours.com&#34;&gt;Jennifer Kyrnin&lt;/a&gt; - May 5, 2014&lt;/p&gt;&#xA;&lt;p&gt;Thanks! I was starting to wonder if I was the only person noticing this issue. :-) As so many of the testing sites use iframes and then all have this problem.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>Playing with Zeen - I created an HTML5 magazine</title>
      <link>https://www.html5in24hours.com/posts/playing-with-zeen-i-created-an-html5-magazine/</link>
      <pubDate>Thu, 30 Aug 2012 03:38:28 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/playing-with-zeen-i-created-an-html5-magazine/</guid><description>&lt;p&gt;[caption id=&amp;ldquo;attachment_490&amp;rdquo; align=&amp;ldquo;aligncenter&amp;rdquo; width=&amp;ldquo;757&amp;rdquo;]&lt;a href=&#34;http://zeen.com/magazine/GSMgKn&#34; title=&#34;HTML5 Zeen&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/html5-zeen.png&#34; alt=&#34;HTML5 Zeen&#34; title=&#34;HTML5 Zeen&#34;&gt;&lt;/a&gt; Latest issue of HTML5 Zine&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been playing with the new webzine creation tool: &lt;a href=&#34;http://zeen.com/&#34;&gt;Zeen&lt;/a&gt;. I&amp;rsquo;ve linked to several of my articles about HTML5 from &lt;a href=&#34;http://webdesign.about.com/&#34;&gt;About.com&lt;/a&gt;. I hope you enjoy my &lt;a href=&#34;http://zeen.com/magazine/GSMgKn&#34;&gt;first issue&lt;/a&gt;.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>I&#39;m loving SVG</title>
      <link>https://www.html5in24hours.com/posts/im-loving-svg/</link>
      <pubDate>Tue, 03 Jul 2012 19:48:31 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/im-loving-svg/</guid><description>&lt;p&gt;One of the great things about HTML5 is that there is a &lt;a href=&#34;http://dev.w3.org/SVG/proposals/svg-html/svg-html-proposal.html&#34; title=&#34;Inline SVG in HTML5 and XHTML&#34;&gt;proposal in the W3C&lt;/a&gt;  to allow HTML5 and XHTML to include SVG inline in the documents. But what&amp;rsquo;s especially great is that if you&amp;rsquo;re using a modern browser (IE 9+, Firefox, Safari, Chrome, or Opera) you can embed SVG graphics in your HTML5 documents quickly and painlessly.&lt;/p&gt;&#xA;&lt;p&gt;I am loving SVG because I don&amp;rsquo;t have to learn anything new. I can simply create vector graphics in Adobe Illustrator and then embed the SVG code into my HTML like I would any other image or embedded element. I don&amp;rsquo;t even have to use any special tags to call it out, I just paste everything from the starting &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt; tag to the closing &lt;code&gt;&amp;lt;/svg&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s an example. Note, I have added a &lt;code&gt;&amp;lt;switch&amp;gt;&lt;/code&gt; tag to call a fallback image if your browser doesn&amp;rsquo;t support inline SVG. This might result in you seeing the image twice, but I hope not. :-) If, when you right-click on this graph, you see a PNG image, then you&amp;rsquo;re seeing the fallback image.&lt;/p&gt;&#xA;&lt;p&gt;[iframe_loader src=&amp;ldquo;&lt;a href=&#34;https://www.html5in24hours.com/examples/inline-svg.html%22&#34;&gt;https://www.html5in24hours.com/examples/inline-svg.html&amp;quot;&lt;/a&gt; height=&amp;ldquo;310&amp;rdquo;]&lt;/p&gt;&#xA;&lt;p&gt;If you look at the HTML for that image, you&amp;rsquo;ll see a lot of &lt;code&gt;&amp;lt;g&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;path fill=&amp;quot;#FED7B8&amp;quot; d=&amp;quot;M149.878,150.489l52.584,112.768c-62.28,29.041-136.311,2.097-165.353-60.184 c-14.521-31.14-15.905-62.854-4.154-95.141L149.878,150.489z&amp;quot;/&amp;gt;&lt;/code&gt; and other stuff that might look like gobbledygook, but it&amp;rsquo;s all SVG, and I didn&amp;rsquo;t have to come up with any of it. My program, Illustrator, did all the heavy lifting.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-ability-to-add-smooth-crisp-vector-images-to-my-html-pages-is-a-huge-benefit-to-using-html5-i-hope-that-we-see-more-of-this-type-of-graphics-in-the-future&#34;&gt;The ability to add smooth, crisp vector images to my HTML pages is a huge benefit to using HTML5. I hope that we see more of this type of graphics in the future.&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;%22beth.kline@harley-davidson.com%22&#34;&gt;Beth&lt;/a&gt; - Jul 4, 2012&lt;/p&gt;&#xA;&lt;p&gt;Love getting your helpful hints.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;%22stanmil@internet.com.na%22&#34;&gt;Stan&lt;/a&gt; - Jul 0, 2012&lt;/p&gt;&#xA;&lt;p&gt;Just starting to learn into this Canvas/HTML5 &amp;amp; need more patience for better understanding. Sounds very positive &amp;amp; looks good! Thanks for this kick-start help. God bless! Stan from Windhoek&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h4&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;%22bloggerbob91@yahoo.com%22&#34;&gt;Bob&lt;/a&gt; - Sep 2, 2012&lt;/p&gt;&#xA;&lt;p&gt;Stan, Canvas/HTML5 and SVG are different. Canvas is a raster image while SVG is a scalable image.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>What is ugly HTML?</title>
      <link>https://www.html5in24hours.com/posts/what-is-ugly-html/</link>
      <pubDate>Thu, 28 Jun 2012 00:02:11 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/what-is-ugly-html/</guid><description>&lt;p&gt;Yesterday, someone asked me the question:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“What is ugly HTML?”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;And I realized that this isn&amp;rsquo;t necessarily an obvious thing. HTML is often ugly simply because of how it looks, this mostly centers around readability for me:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;All one line and/or minified This is very popular with minimalists and people who are very concerned with the speed of their pages. Minifying the code is a technique to remove all extraneous spaces, new lines, and characters to keep the HTML as small and streamlined as possible. Yes, this does speed up the pages, and I even recommend that you do it, but I really hate looking at it. It&amp;rsquo;s ugly.&lt;/li&gt;&#xA;&lt;li&gt;Too little formatting (and too much) By formatting, I mean the tabs and new lines that make the HTML easier to read. This is similar to the first item in this list, but I think we should take this further and include too much formatting as well. I have seen pages where there are two or three nested tables, and every single table row and column is indented from the container. This can get insanely hard to read after a while. e.g.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;table&amp;gt;   &amp;lt;tr&amp;gt;     &amp;lt;td&amp;gt;       &amp;lt;table&amp;gt;         &amp;lt;tr&amp;gt;           &amp;lt;td&amp;gt;             &amp;lt;table&amp;gt;               &amp;lt;tr&amp;gt;                 &amp;lt;td&amp;gt;                   …&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;All caps HTML Yes, this is valid in HTML5 (and HTML 4), but it&amp;rsquo;s ugly and hard to read. I think some people do it so that they can see the tags more quickly, but although you can see the tags, it&amp;rsquo;s hard to differentiate them at times. I recommend &lt;a href=&#34;http://webdesign.about.com/od/fonts/qt/all-caps-is-bad-typography.htm&#34; title=&#34;All Caps Make Bad Headlines&#34;&gt;avoiding all caps for headlines&lt;/a&gt; because they are hard to read, and the same goes for HTML tags. If you need to edit the HTML later, it can be that much harder to find the problem if they are all in capital letters. &lt;/li&gt;&#xA;&lt;li&gt;Invalid HTML This is the ugliest HTML of all because it can make a page show up incorrectly at the most inopportune times. It&amp;rsquo;s not a difficult thing to validate your HTML (I like the &lt;a href=&#34;http://validator.w3.org/&#34; title=&#34;HTML Validation Service from the W3C&#34;&gt;W3C validator&lt;/a&gt;, myself) and this can save you so much time in the future. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Then there is the ugly HTML because it&amp;rsquo;s using old-fashioned methods:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Too many DIVs It&amp;rsquo;s like when people learned CSS for layout they only learned to put the CSS on one tag &amp;ndash; the DIV element. So every block of text, every image, everything on the page is surrounded by one or more DIVs. Yes, this is technically correct. Yes, it works. But man, it&amp;rsquo;s ugly. It provides no extra information about the content beyond that it&amp;rsquo;s a block that might have some styles applied to it. I particularly hate when they add the styles to a DIV that is surrounding another, perfectly functional block-level element like a UL element. Why not style the UL? Save yourself a few characters!&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;I hate it when people add spaces using  Just like the above, it works, and it makes the page look like you want, but really, that&amp;rsquo;s what CSS is for. There is this wonderful property: margin, that you can use to set the margins around any element &amp;ndash; and rather than relying on the space set by a paragraph tag, you can define it to exactly the size you want.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;I hate it even more when people use tons of &lt;code&gt;&amp;lt;BR&amp;gt;&lt;/code&gt; elements in a row&lt;/p&gt;&#xA;&lt;p&gt;Yes, it shoves things down, but just like the above item, the margin property works better and takes up less download time.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Hiding content in strange places One site I visited once used the title attribute as a way to hide content. When you moused over certain sections of the page, the title content would show up. But the browser I was using showed the title content in a little yellow box as well, often covering the very content that the designer was trying to place. Use JavaScript and place the content in the page. HTML5 even offers a hidden attribute that you can toggle on and off if you want the content to appear and disappear.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;what-do-you-think-makes-ugly-html-or-does-the-html-not-matter-as-long-as-the-page-looks-good&#34;&gt;What do you think makes ugly HTML? Or does the HTML not matter as long as the page looks good?&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;%22skhatoon@yahoo.com%22&#34;&gt;Sofia Khatoon&lt;/a&gt; - Oct 5, 2012&lt;/p&gt;&#xA;&lt;p&gt;Thanks for a wonderful book on this topic. Just noticed spelling &amp;ldquo;Reset Default Foont Size&amp;rdquo; in companion web site on Hour 6. Also wanted to ask if you can share samples of styles-320.css which makes the puzzle page appear in two column in the book.&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;I&amp;rsquo;ll look for these and get them up on the site. Thanks for the compliment.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>Learn the HTML Elements Removed from HTML5</title>
      <link>https://www.html5in24hours.com/posts/learn-the-html-elements-removed-from-html5/</link>
      <pubDate>Tue, 17 Apr 2012 20:45:17 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/learn-the-html-elements-removed-from-html5/</guid><description>&lt;p&gt;There are several HTML 4 elements that have been removed from HTML5. In order to use HTML5 correctly, you should stop using these elements.&lt;/p&gt;&#xA;&lt;p&gt;In HTML 4 elements that removed from the specification are “deprecated,” but in HTML5 they are “obsolete.” The difference is that in HTML 4, deprecated elements should be removed from support by browsers. While in HTML5 obsolete elements are ones that may still be supported by browsers, but it  that designers use other technology instead.&lt;/p&gt;&#xA;&lt;h3 id=&#34;html-elements-removed-from-html5&#34;&gt;HTML Elements Removed from HTML5&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;acronym&lt;/code&gt; You should use the &lt;code&gt;abbr&lt;/code&gt; element instead.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;applet&lt;/code&gt; Instead of this tag, you should use the &lt;code&gt;embed&lt;/code&gt; element or the &lt;code&gt;video&lt;/code&gt; and &lt;code&gt;audio&lt;/code&gt; elements.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;basefont&lt;/code&gt; You should set font properties with CSS.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;big&lt;/code&gt; This tag has no semantic value, and so you should define the styles in the CSS.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;center&lt;/code&gt; You should center with CSS.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;dir&lt;/code&gt; You should use the appropriate unordered or ordered list instead.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;font&lt;/code&gt; You should set font properties with CSS.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;frame&lt;/code&gt; Replace frames with &lt;code&gt;iframe&lt;/code&gt; or converted to non-framed sites.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;frameset&lt;/code&gt; Replace frames with &lt;code&gt;iframe&lt;/code&gt; or converted to non-framed sites.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;noframes&lt;/code&gt; Replace frames with &lt;code&gt;iframe&lt;/code&gt; or converted to non-framed sites.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;strike&lt;/code&gt; Replace this tag with either the &lt;code&gt;s&lt;/code&gt; element if the text is no longer accurate, with the &lt;code&gt;del&lt;/code&gt; element if the text has been removed, or with CSS if the line through the text is just stylistic in nature.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;tt&lt;/code&gt; Define the font styles with CSS.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Learn the New HTML5 Elements</title>
      <link>https://www.html5in24hours.com/posts/new-html5-elements/</link>
      <pubDate>Tue, 17 Apr 2012 17:57:12 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/new-html5-elements/</guid><description>&lt;p&gt;One of the first things you want to learn when you start learning HTML5 are the new elements. There are several new HTML5 elements to add new features and functionality to HTML5.&lt;/p&gt;&#xA;&lt;h2 id=&#34;new-html5-elements&#34;&gt;New HTML5 Elements&lt;/h2&gt;&#xA;&lt;h3 id=&#34;document-metadata&#34;&gt;Document Metadata&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;meta charset&lt;/code&gt;&lt;br&gt;&#xA;This is a new, shortened form of the character set meta data. It was added to the specification because web designers were writing the original character set meta tag incorrectly and browsers were supporting it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;sections&#34;&gt;Sections&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;section&lt;/code&gt;&lt;br&gt;&#xA;A discrete section of the document.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;nav&lt;/code&gt;&lt;br&gt;&#xA;Navigation.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;article&lt;/code&gt;&lt;br&gt;&#xA;An article or page section that could be syndicated.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;aside&lt;/code&gt;&lt;br&gt;&#xA;A page section that is tangentially related to either the current page or the site as a whole.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;hgroup&lt;/code&gt;&lt;br&gt;&#xA;A group of headings.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;header&lt;/code&gt;&lt;br&gt;&#xA;The header information for a section or page.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;footer&lt;/code&gt;&lt;br&gt;&#xA;The footer information for a section or page.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;grouping-content&#34;&gt;Grouping Content&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;figure&lt;/code&gt;&lt;br&gt;&#xA;Content that is self-contained and referenced as a single unit within the flow of the page.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;figcaption&lt;/code&gt;&lt;br&gt;&#xA;A caption for a figure.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;text-level-semantics&#34;&gt;Text-level Semantics&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;data&lt;/code&gt;&lt;br&gt;&#xA;Contents that have a machine-readable format that is defined in the &lt;code&gt;value&lt;/code&gt; attribute.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;time&lt;/code&gt;&lt;br&gt;&#xA;A date or time with a machine-readable format defined in the &lt;code&gt;datetime&lt;/code&gt; attribute.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;mark&lt;/code&gt;&lt;br&gt;&#xA;A block of text that is highlighted for some purpose beyond the context of the current page.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ruby&lt;/code&gt;&lt;br&gt;&#xA;Ruby annotation used in some double-byte languages.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;rt&lt;/code&gt;&lt;br&gt;&#xA;Ruby text.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;rp&lt;/code&gt;&lt;br&gt;&#xA;Ruby parenthesis.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;bdi&lt;/code&gt;&lt;br&gt;&#xA;A span of text separate from the page contents for bi-directional formatting.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;wbr&lt;/code&gt;&lt;br&gt;&#xA;A line break opportunity.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;embedded-content&#34;&gt;Embedded Content&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;embed&lt;/code&gt;&lt;br&gt;&#xA;The insertion point for embedded content.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;video&lt;/code&gt;&lt;br&gt;&#xA;An embedded video with it’s associated source files and language tracks.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;audio&lt;/code&gt;&lt;br&gt;&#xA;An embedded audio file with it’s associated source files.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;source&lt;/code&gt;&lt;br&gt;&#xA;Source file for embedded video or audio.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;track&lt;/code&gt;&lt;br&gt;&#xA;Supplementary tracks for captioning or secondary audio tracks on videos.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;canvas&lt;/code&gt;&lt;br&gt;&#xA;A scriptable bitmap area for creating images and animations on a web page.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;forms&#34;&gt;Forms&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=search&lt;/code&gt;&lt;br&gt;&#xA;A search box text field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=tel&lt;/code&gt;&lt;br&gt;&#xA;A telephone number input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=url&lt;/code&gt;&lt;br&gt;&#xA;A URL input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=email&lt;/code&gt;&lt;br&gt;&#xA;An email address input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=datetime&lt;/code&gt;&lt;br&gt;&#xA;A date and time input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=date&lt;/code&gt;&lt;br&gt;&#xA;A date input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=month&lt;/code&gt;&lt;br&gt;&#xA;A month input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=week&lt;/code&gt;&lt;br&gt;&#xA;A week of the year input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=time&lt;/code&gt;&lt;br&gt;&#xA;A time input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=datetime-local&lt;/code&gt;&lt;br&gt;&#xA;A local date and time input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=number&lt;/code&gt;&lt;br&gt;&#xA;A number input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=range&lt;/code&gt;&lt;br&gt;&#xA;An inexact number input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;input type=color&lt;/code&gt;&lt;br&gt;&#xA;A color input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;datalist&lt;/code&gt;&lt;br&gt;&#xA;A list of pre-defined options for an input field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;keygen&lt;/code&gt;&lt;br&gt;&#xA;A key pair generator control.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;output&lt;/code&gt;&lt;br&gt;&#xA;Scripted form output.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;progress&lt;/code&gt;&lt;br&gt;&#xA;The completed progress of a task.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;meter&lt;/code&gt;&lt;br&gt;&#xA;A scalar value within a known range.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;interactive-elements&#34;&gt;Interactive Elements&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;details&lt;/code&gt;&lt;br&gt;&#xA;An element where the user can get additional information.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;summary&lt;/code&gt;&lt;br&gt;&#xA;A caption or legend explaining the parent &lt;code&gt;details&lt;/code&gt; element.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;command&lt;/code&gt;&lt;br&gt;&#xA;A command that the user can invoke.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;menu&lt;/code&gt;&lt;br&gt;&#xA;A list of commands.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;dialog&lt;/code&gt;&lt;br&gt;&#xA;A part of an application that the user interacts with such as a dialog box.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>HTML5 Video Codec Wars</title>
      <link>https://www.html5in24hours.com/posts/html5-video-codec-wars/</link>
      <pubDate>Sat, 17 Mar 2012 14:50:02 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/html5-video-codec-wars/</guid><description>&lt;p&gt;One of the reasons many people dislike HTML5 video is because you have to encode the video in multiple codecs to work on multiple browsers. In fact, in an article I just read that was one of the reasons to hate HTML5. He said, if you have to encode it in flash to support IE why bother doing anything else.&lt;/p&gt;&#xA;&lt;p&gt;Well I&amp;rsquo;m on an iPad and my answer to that is, if you don&amp;rsquo;t encode it in something other than flash, I won&amp;rsquo;t be able to view it. And whether you like it or not, the iPad and other mobile devices are becoming more important.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.html5in24hours.com/images/20120317-075141.jpg&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/20120317-075141.jpg&#34; alt=&#34;20120317-075141.jpg&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But that&amp;rsquo;s not what I want to talk about today. The reason people don&amp;rsquo;t like HTML5 video is because there are so many codecs. Which wouldn&amp;rsquo;t be so bad except that you have to encode your video in all of them, to support the majority of browsers. That means webM, ogg Theora, H.264 and flash. And then the &lt;a href=&#34;http://news.cnet.com/8301-30685_3-57397031-264/mozilla-execs-capitulate-in-h.264-web-video-war/&#34;&gt;Mozilla organization announced they would be supporting H.264&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Does this bother you? Many people see it as Mozilla caving in. After all H.264 still has a patent surrounding it and so Mozilla is no longer supporting their goal of an open web.&lt;/p&gt;&#xA;&lt;p&gt;I applaud Mozilla for trying to keep that goal of an open web. But ultimately I think they need to change and go with the codec that most people are using, H.264. Because without a video codec that most people use Mozilla and their browser Firefox become less viable in the marketplace. And with fewer browser manufacturers, the remaining ones will feel less and less pressure to go along with consumer needs for the browsers.&lt;/p&gt;&#xA;&lt;p&gt;In fact, I believe if Firefox had not added support for H.264 they would not succeed on the mobile browsers as a viable alternative.&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>
    <item>
      <title>Using HTML5 Video and Audio</title>
      <link>https://www.html5in24hours.com/posts/using-html5-video-and-audio/</link>
      <pubDate>Fri, 21 Oct 2011 19:10:03 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/using-html5-video-and-audio/</guid><description>&lt;p&gt;On my &lt;a href=&#34;http://About.com&#34;&gt;About.com&lt;/a&gt; site I wrote an 11-page article explaining &lt;a href=&#34;http://webdesign.about.com/od/video/ss/html5-video.htm&#34;&gt;how to add video using HTML5&lt;/a&gt; with fallback options for Internet Explorer. I also have a similar (although a lot shorter) article on &lt;a href=&#34;http://webdesign.about.com/od/sound/qt/add-sound-html5-audio-element.htm&#34;&gt;how to add sound with HTML5&lt;/a&gt;. And I get a lot of emails about them saying “I tried this in _____ browser and it didn’t work.” And I’m expecting to get the same type of feedback from chapter 12 when the book comes out.&lt;/p&gt;&#xA;&lt;p&gt;Now, I admit, I am human. I make mistakes and things get munged in publishing and so on. I tested both the articles on About and the chapter code extensively, as did my technical editors. And I’m confident that it works in modern web browsers, even Internet Explorer.&lt;/p&gt;&#xA;&lt;h3 id=&#34;follow-the-steps-precisely&#34;&gt;Follow the Steps Precisely&lt;/h3&gt;&#xA;&lt;p&gt;The video article is especially tough because it’s so long. Who wants to wade through 11 pages of stuff just to post a video? Wouldn’t we all rather be shooting our films instead? But none of the pages are in there as fluff. If you want your video to work in modern HTML5 compliant browsers as well as Internet Explorer 8, then you need to read and do them all. And I can tell by my statistics that people aren’t doing that. In fact, while the first most popular page is page 1, the next most popular is page 5. Page 9 (where you make it compliant with IE) is only 1/2 as popular as page 5.&lt;/p&gt;&#xA;&lt;p&gt;The thing is—this stuff is &lt;em&gt;very&lt;/em&gt; picky. You have to follow the steps exactly, or it won’t work. In fact, it took me a long time and many trials and lots of errors before I could get it working well enough to write the articles and chapter. This means that it can be very frustrating.&lt;/p&gt;&#xA;&lt;p&gt;In my opinion, the frustration is made up for by the benefits you get from using HTML5 for video and audio. You may disagree.&lt;/p&gt;&#xA;&lt;h3 id=&#34;and-if-you-do-find-an-error&#34;&gt;And if You Do Find an Error…&lt;/h3&gt;&#xA;&lt;p&gt;Please let me know. As I said above, I’m human, and I do make mistakes. But I can’t fix them if I don’t know about them, and since I tested it I think it works as I wrote it. So I don’t know about any errors. Please don’t hesitate to let me know about problems with the articles or the book when you find them. I’d really appreciate it and it might even help you get your video and audio working!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Borders on tables now ok in HTML5</title>
      <link>https://www.html5in24hours.com/posts/borders-on-tables-now-ok-in-html5/</link>
      <pubDate>Fri, 22 Apr 2011 16:05:05 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/borders-on-tables-now-ok-in-html5/</guid><description>&lt;p&gt;If you use tables (not for layout, of course) it can be very tedious to get the borders to surround every cell using CSS. You need to set the border on the table and on every th and td, and then collapse the borders with border-collapse. I don’t know about you, but I would often just add the &lt;code&gt;border&lt;/code&gt; attribute to the table, just to get it done quickly.&lt;/p&gt;&#xA;&lt;p&gt;Well, this week the HTML5 working group &lt;a href=&#34;http://www.w3.org/html/wg/wiki/ISSUE-155-CP1&#34;&gt;decided&lt;/a&gt; to make that okay again. They agreed that many tables need to have borders to define the cells. The &lt;a href=&#34;http://lists.w3.org/Archives/Public/public-html/2011Apr/0377.html&#34;&gt;proposal&lt;/a&gt; pointed out that putting CSS on a table to define the borders would not be carried over when the table was moved between implementations. In other words, if you wrote a table in an HTML document, and then ported that document into XML, the borders in CSS would stay with the CSS, not with the table.&lt;/p&gt;&#xA;&lt;h2 id=&#34;now-it-is-legal-to-write-table-borderto-add-borders-around-your-table-and-table-cells-i-for-one-am-pleased&#34;&gt;Now it is legal to write &lt;code&gt;&amp;lt;table border&amp;gt;&lt;/code&gt;  to add borders around your table and table cells. I, for one, am pleased!&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;%22skmpu@bhmk.com%22&#34;&gt;Steven K. Mariner&lt;/a&gt; - Mar 5, 2015&lt;/p&gt;&#xA;&lt;p&gt;This is good news and a welcome relief. I was starting to wonder if the fine folks who worked on the HTML5 standard even used HTML anymore. The insane amount of overhead required by the use of CSS to do everything suggested they have forgotten that sometimes *people* make web sites, and mobile devices have to load them *slowly*. Mandatory content increase is a bad idea, and HTML5 is littered with it.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;</description>
    </item>
    <item>
      <title>YouTube delivers WebM video</title>
      <link>https://www.html5in24hours.com/posts/youtube-delivers-webm-video/</link>
      <pubDate>Wed, 20 Apr 2011 20:42:40 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/youtube-delivers-webm-video/</guid><description>&lt;p&gt;The &lt;a href=&#34;http://youtube-global.blogspot.com/2011/04/mmm-mmm-good-youtube-videos-now-served.html&#34;&gt;YouTube blog&lt;/a&gt; announced yesterday that they are now serving videos in the &lt;a href=&#34;http://www.webmproject.org/about/&#34;&gt;WebM&lt;/a&gt; format. They will continue to support H.264, and they are committed to continuing to develop their HTML5 player. You can join the HTML5 player trial &lt;a href=&#34;http://www.youtube.com/html5&#34;&gt;at their site&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m curious, what video format would you like to see win? [poll id=&amp;ldquo;2&amp;rdquo;]&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Picking the Right Video Player for Your HTML5 Video</title>
      <link>https://www.html5in24hours.com/posts/picking-the-right-video-player-for-your-html5-video/</link>
      <pubDate>Sun, 17 Apr 2011 19:24:57 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/picking-the-right-video-player-for-your-html5-video/</guid><description>&lt;p&gt;&lt;a href=&#34;http://praegnanz.de/html5video/index.php&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/html5-video-player-praegnanz-300x127.png&#34; alt=&#34;HTML5 Video Player Chart - screen shot from Praegnanz.de &#34; title=&#34;HTML5 Video Player Chart&#34;&gt;&lt;/a&gt; Unfortunately, while HTML5 brings us a much easier way to embed videos into your web pages, but because of many factors, it still(!) isn&amp;rsquo;t possible to just drag your video into the &lt;code&gt;video&lt;/code&gt; tag and then slap it up on the web. By using a player you can get your HTML5 video up and running quickly.&lt;/p&gt;&#xA;&lt;p&gt;But which player should you choose?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://stereonom.de/&#34;&gt;Philip Bräunlich&lt;/a&gt; has you covered! He&amp;rsquo;s created a &lt;a href=&#34;http://praegnanz.de/html5video/index.php&#34;&gt;chart of (currently) 20 different HTML5 video players&lt;/a&gt;, along with details like: what license they are released under, if they have a Flash fallback for non-HTML5 compliant browsers (darn you IE8!), and other features. I especially like that he evaluates how easy or hard they are to implement (for example, OSM Player is &amp;ldquo;hell no&amp;rdquo; not easy to integrate).&lt;/p&gt;&#xA;&lt;p&gt;Right now, none of the players support every feature he&amp;rsquo;s evaluating, but it certainly is a lot easier to use these players with the features you need or want than it is to roll your own.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What&amp;rsquo;s your favorite HTML5 video player?&lt;/strong&gt; Let us know in the &lt;a href=&#34;https://www.html5in24hours.com/posts/picking-the-right-video-player-for-your-html5-video/#reply-title&#34;&gt;comments&lt;/a&gt;!&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
