A lot of people are wanting to look into the future as to what the possibilities will be with HTML5. I am not sure how long it will take for these techniques to become the standard, but it can’t hurt getting yourself ahead of the curve.
HTML 5 is the next version of HTML that will come out. It adds a bunch of new semantic elements to help us code our websites. HTML 5 is also said to include a drawing API (canvas), as well as dragging and dropping of elements.
Let’s take a brief look at some of the new HTML5 elements.
<header>
<h1>Page title</h1>
</header>
<nav>
<!-- Navigation -->
</nav>
<section>
<!-- Section -->
</section>
<aside>
<!-- Sidebar -->
</aside>
<footer>
<!-- Footer -->
</footer>
All the above are pretty self explanatory. They describe the structural elements that one would use to layout a page. This elements would replace the divs we normally use in their place.
<div id="header"> </div> <!-- end header -->
Another thing to note is that the “header” tag does not necessarily mean the page header. It can be used as follows:
<section>
<header>
<h2>My Heading</h2>
</header>
</section>
Another important tag to note is the “article” tag. In general terms this would wrap a blog post, portfolio item, service listing etc.. There are all essentially articles even though we might not think of them that way.
HTML 5 has introduced a slew of new form elements that will make things so much more semantic.
<form action="#" method="post"> <input name="name" id="name" type="text" /> <input name="email" id="email" type="email "/> <input name="website" id="website" type="url" /> </form>
Notice that our “type” attributes have new values that can be assigned.
There are two more tags I should quickly touch on and those are the “canvas” and “time” tags.
Time is self-explanatory. It allows you to control how a date and time are displayed:
<time datetime="2009-06-29T23:31:45+01:00">June 29th 2009</time>
A more complex tag is the “canvas” tag. This tag represents an area that you can draw on using JavaScript. It has some neat functionality which I will not dive into yet. Below is a neat sideshow on its use.
Nice overview
Just thought i’d comment and say neat theme, did you code it yourself? Lookssuperb.
How do i get updates sent to my inbox when you update the site? I been browsing your website for a while now and wouldnt mind a heads up.
Twitter
Follow me on Twitter to keep up to date!
RSS Feed
Keep up with all of our updates by subscribing to our RSS feed!
FaceBook
Join our group on Facebook and become a fan of us!