First Look into HTML6 with Examples and Resources

We hadn’t even mastered HTML5 yet and W3C is already rolling out initial versions HTML6. And we are not fooling you. It is coming out, so once again it is time get our hands dirty. Forget HTML6 release date and let’s get down coding in HTML6.

HTML6 is so new that even Wikipedia doesn’t have its page yet. It is still at the absolutely initial stages but we are in a position to figure out what it is, where will it lead us and how will we be coding it. Let’s get get a quick HTML6 overview.

Just like HTML5, the new version of HTML is coming with significant code structure differences. The new version is more standardized, more similar to XML and more suited for building web apps for the future.

New Coding Structure

HTML6 coding design

Image courtesy of Web Design Indonesia

CSS tricks proposed a list of suggested code additions for HTML6 a couple of years ago. W3C listened but they replied in a unique fashion. They added the mother of all those proposals. They added XML-like namespaces… and this is the most visible change in HTML6.

This changes the whole coding structure, but it standardizes it to a whole new level. Now you don’t have to ID your divs, you can use namespaces.

HTML6 examples

<div id=’container’> can now become <container>

Let’s check how these namespaces in action.

<!DOCTYPE html>
 <!-- Notice how <html> turns into <html:html> -->
 <!-- Obviously, the <head> tag also changes, so do the rest of codes. -->
 <html:title>A Look Into HTML6</html:title>
 <html:meta type="description" value="HTML6 namespaces example">
 <!-- Anchor text example -->
 <html:a href="">Go to Designzzz!</html:a>
 <!-- Image example -->
 <html:media src="img/logo.jpg" type="image">
 <!-- Video example. You can include any video. -->
 <html:media src="videos/">
 <html:button>Click Here</html:button>

Here’s an example of finalized code.

<!DOCTYPE html>
 <html:title>Overview of HTML6</html:title>
 <html:meta type="title" value="">
 <html:meta type="description" value="HTML6 namespaces">
 <html:link src="css/mainfile.css" title="Styles" type="text/css">
 <html:link src="js/mainfile.js" title="Script" type="text/javascript">
 <html:media type="image" src="images/logo.png">
 <html:a href="/img1">a1</a>
 <html:a href="/img2">a2</a>
 <html:a href="/img3">a3</a>
 <h1>Main Heading</h1>
 <h2>Concepts of HTML6</h1>
 <h2>Namespaces in HTML6</h2>
 <copyright>Your copyright notice.</copyright>

That’s the future of HTML attributes.

HTML6 Free Resources

I don’t know why but people have been joking around with HTML6 resources. We have already mentioned the April Fool’s day post in the beginning of the article, another guy has made an HTML6 boilerplate which is also a joke.

But not everything is a joke! Here’s free tool for testing your browser with HTML6.

I tested both my browsers. The latest version of Firefox scored 429 and the latest version of Google Chrome scored 523.

HTML6 Browser Test

HTML6 Distributed Specification guide is another valuable resource if you want to learn the coding concepts of HTML6 in-depth.
I have observed that this distributed specification guide is being regularly updated that’s why I’m including it.

HTML6 Distributed Specification

Where are heading?

What seems clear to me is that HTML6 is moving towards killing JavaScript. They have already proposed single-page web apps without JavaScripts that’s only the tip of the iceberg.

Namespaces make it clear that in a few years, the HTML6 will mature into a dedicated programming specialization, and will surpass PHP, .net and such other languages in terms of functionality and complexity. So my advice is that you should start working on HTML6 immediately and make it your slave. Now is the time to do it while everyone isn’t paying attention.

That’s all I have about HTML6 at the moment. But I will keep updating you updated as W3C rolls out updates in this version of HTML.