html6

HTML 6 – All you need to know

HTML5 has made some awesome improvements over HTML4: Bringing us new semantic tags like <nav>, <time>, and <meter>; allowing us to easily embed media in the form of <video> and <audio> tags; and giving us a whole bunch of awesome JavaScript APIs. However, there is still one major leap that HTML has yet to make, and that is the leap to becoming truly distributed.

With HТML6, you define your own specification, allowing you to mark things up how you want to mark them up. Instead of <div class=”wrapper”>, you can just use <wrapper>. Want a calendar? No problem:

<calendar>
  <month name="August">
    <day>1</day>
    <day>2</day>
    <day>3</day>
    <!-- &c. -->
  </month>
</calendar>

 

You can finally stop wasting your time trying to decide whether your element should be an <aside>, a <figure>, or just a plain <div>, and simply call it what it is!

The web is moving at a faster pace than ever, and to keep up we need markup that stays out of our way and lets us do our job. This spec’ enables us to do just that. It finally does away with fatuous semantics that are too abstract for anyone to understand, and brings developers a new, simpler, cleaner markup language.

Concept

The central idea behind HТML6 is namespaces. In HТML6, we move HTML out of the way by putting it under its own html namespace, allowing you to stop worrying about the nitty-gritty details of semantics, and focus on creating content. In other words, you literally just make it up as you go along. You don’t even need to know HTML!

So, what does it look like? Prepare yourself to be blown away, and check out the source code of this page! (Please note that it may not work in all browsers, in which case it will fall back to legacy HTML.)
To give you an idea of the power of HТML6, though, let’s look at the <sup> tag. I don’t like the way <sup> is used for superscript text, and think it would be far cooler to use it to markup greetings (“Sup John, how are you today?”). With HТML6, the W3C’s superscript tag has been moved to <html:sup>, allowing us to easily define our own:

<style>
  sup:before { content: "Hello, "; }
  sup:after { content: "!"; }
</style>
<sup>World</sup>

 

I’ve just realized that this page is sorely missing something — bullet points! We’re more than half way through the document and we haven’t used a single bullet point. So, for the sake of spacing things out a bit, here’s a list of some of the best types of turtles (in descending order of awesomeness):

  • Red Eared Slide
  • Eastern Box Turtle
  • Three-Toed Box Turtle
  • Painted Turtle
  • Russian Tortoise

Tag Content

In legacy HTML, there is a lot of discrepancy in the way tags are handled. Some tags are double (e.g. <script></script>), and some are single (e.g. <link>). Although these choices seem somewhat logical at first, it soon becomes apparent that this is merely apophenia. The tags to be single were, in actual fact, pulled out of a hat randomly by professional, but drunk, bigwigs. In HТML6, a much simpler, and more logical, scheme is used: Single tags are self-closed by adding / at the end (e.g. <link />), and any tag not self-closed will be interpreted as a double tag.

Another difference between HТML6 and HTML5 are content types. In HTML5, the content type was determined by the tag’s name (<img>/<script>/<video>/&c.), or the tag’s type attribute. In HТML6, specifying a content type is redundant as the browser can work it out using wizardry.

Conclusion

If there’s anything that you take away with you today, let it be this: airplane are fricken’ awesome. Also, there will never be a HTML6 🙁

Reference

http://www.html6.network/H%D0%A2ML/

How capable your browser is for HTML6. test here http://html6test.com/

 

 

 

 

Written By