<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[html5 - All your code are belong to us]]></title><description><![CDATA[Thoughts, stories and ideas on code and technology in general.<br>Blog title inspired by <a href="https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us" target="_blank">this meme</a>]]></description><link>https://allurcode.com/</link><image><url>https://allurcode.com/favicon.png</url><title>html5 - All your code are belong to us</title><link>https://allurcode.com/</link></image><generator>Ghost 4.48</generator><lastBuildDate>Thu, 25 Dec 2025 15:34:50 GMT</lastBuildDate><atom:link href="https://allurcode.com/tag/html5/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[HTML5 Where to start?]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Everyone is excited about the new kid on the block &#x2013; HTML5, but where to start and how to use it? There are couple of things you can start using right now with a few hacks for our lovely IE6 and other browsers not yet supporting HTML5. Before we get</p>]]></description><link>https://allurcode.com/html5-where-to-start/</link><guid isPermaLink="false">5b7b0aa2b52b43084c9ea125</guid><category><![CDATA[HTML]]></category><category><![CDATA[html5]]></category><category><![CDATA[markup]]></category><category><![CDATA[semantic]]></category><category><![CDATA[start]]></category><category><![CDATA[tag]]></category><dc:creator><![CDATA[Wojtek]]></dc:creator><pubDate>Tue, 15 Jun 2010 14:16:55 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>Everyone is excited about the new kid on the block &#x2013; HTML5, but where to start and how to use it? There are couple of things you can start using right now with a few hacks for our lovely IE6 and other browsers not yet supporting HTML5. Before we get into it, it&#x2019;s good to know the level of support of HTML5 in different browsers. These few links can help you find it out.</p>
<ul>
<li><a href="https://html5test.com/">Test your browser for support</a></li>
<li><a href="https://bestvpn.org/whats-my-ip/">Web Designer&#x2019;s Checklist</a></li>
<li><a href="https://caniuse.com/">When can I use</a></li>
</ul>
<h3 id="notsupportedelements">Not supported elements</h3>
<p>Following elements are no longer supported in HTML5:</p>
<pre><code class="language-html">&lt;acronym&gt;
&lt;applet&gt;
&lt;basefont&gt;
&lt;big&gt;
&lt;center&gt;
&lt;dir&gt;
&lt;font&gt;
&lt;frame&gt;
&lt;frameset&gt;
&lt;noframes&gt;
&lt;s&gt;
&lt;strike&gt;
&lt;tt&gt;
&lt;u&gt;
&lt;xmp&gt;
</code></pre>
<p>Now, lets start with a few simple tags.</p>
<h3 id="doctype">Doctype</h3>
<p>Oh the doctype, who could remember the whole thing?</p>
<pre><code class="language-html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot; &gt;
</code></pre>
<p>Instead of old doctype like the one above, we can finally start using something that is really easy to remember.</p>
<pre><code class="language-html">&lt;!DOCTYPE html&gt;
</code></pre>
<p>YES! That&#x2019;s it, we&#x2019;re done &#x1F642; Even Google is using it already.</p>
<h3 id="characterset">Character Set</h3>
<p>Again, a lot simpler than it used to be.</p>
<pre><code class="language-html">&lt;meta charset=&quot;utf-8&quot; /&gt;
</code></pre>
<h3 id="scriptstyleandlinkelements"><code>&lt;script&gt;</code>, <code>&lt;style&gt;</code> and <code>&lt;link&gt;</code> elements</h3>
<p>We&#x2019;re all used to this</p>
<pre><code class="language-html">&lt;script type=&quot;text/javascript&quot; src=&quot;/path/to/my/file.js&quot;&gt;&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
  #myId {
    margin:0px;
  }
&lt;/style&gt;
&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;/path/to/my/file.css&quot; /&gt;
</code></pre>
<p>but with HTML5 the we can omit the <code>type</code> attributes as the values like above are set as default. Our bit of code becomes a little more clean.</p>
<pre><code class="language-html">&lt;script src=&quot;/path/to/my/file.js&quot;&gt;&lt;/script&gt;
&lt;style&gt;
  #myId {
    margin:0px;
  }
&lt;/style&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;/path/to/my/file.css&quot; /&gt;
</code></pre>
<h3 id="semanticstructure">Semantic structure</h3>
<p>A few new elements were added to add a more semantic meaning to well known <div> tag. Some of those elements are:</div></p>
<pre><code class="language-html">&lt;article&gt;
&lt;section&gt;
&lt;aside&gt;
&lt;hgroup&gt;
&lt;header&gt;
&lt;footer&gt;
&lt;nav&gt;
&lt;time&gt;
&lt;mark&gt;
&lt;figure&gt;
&lt;figcaption&gt;
</code></pre>
<h3 id="supportinie">Support in IE</h3>
<p>IE9 is supposed to support HTML5 when it&#x2019;s out, but for now we have to tell IE what type those elements are. To not complicate things too much, all we need to do is make a use of <a href="http://remysharp.com/2009/01/07/html5-enabling-script/">this awesome script</a>. Just paste it within your <em>head</em> tag.</p>
<pre><code class="language-html">&lt;!--[if IE]&gt;
&lt;script src=&quot;http://html5shim.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</code></pre>
<h3 id="samplepagemarkup">Sample page markup</h3>
<pre><code class="language-html">&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;title&gt;Title&lt;/title&gt;
  &lt;meta charset=&quot;utf-8&quot; /&gt;
  &lt;meta http-equiv=&quot;imagetoolbar&quot; content=&quot;no&quot; /&gt;
  &lt;meta name=&quot;robots&quot; content=&quot;index, follow&quot; /&gt;
  &lt;meta name=&quot;keywords&quot; content=&quot;Keywords&quot; /&gt;
  &lt;meta name=&quot;description&quot; content=&quot;Description&quot; /&gt;
  &lt;!--[if IE]&gt;
    &lt;script src=&quot;http://html5shim.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div id=&quot;wrapAll&quot;&gt;
    &lt;header&gt;
      &lt;nav&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 1&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 2&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 3&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
    &lt;/header&gt;
    &lt;section&gt;
      &lt;article&gt;
        &lt;header&gt;
          &lt;h1&gt;Article Header&lt;/h1&gt;
          &lt;time datetime=&quot;2010-06-15&quot; pubdate&gt;June 15th, 2010&lt;/time&gt;
        &lt;/header&gt;
        &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/p&gt;
      &lt;/article&gt;
    &lt;/section&gt;
    &lt;footer&gt;
      Footer content
    &lt;/footer&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>