The main tags and attributes of HTML 5
1. Doctype
The doctype is simplified:
It is not sensitive (we can write "DOCTYPE html>" for example), and its role is only to avoid rendering mode "Quirks" (or compatibility mode) browsers.
2. Section
The element <Section> can define the different sections of a document such as chapters, the header and footer-of-page, or any other section in a document. It can be combined with elements h1, h2, h3, h4, h5, and h6 for better definition of the document structure.
3. Article
<Article> represents a text from an external source such as a newspaper article, blog or forum.
HTML Code:
<Article>
<p><a href="http://forums.techarena.in">
XHTML is dead, long live HTML!</ a><br />
In this somewhat provocative title (and false) hides an official reality last night: W3C has announced that its work on XHTML 2 will be completed in year 2009.</ p>
</Article>
4. Aside
The element <aside> content is intended to indirectly related to the article itself, it is what surrounds such as a sidebar to archive.
HTML Code:
<aside>
<h1>Archives</ h1>
<ul>
<li><a href="/archives/09/05 /">May 2009</ a></ li>
<li><a href="/archives/09/06 /">June 2009</ a></ li>
<li><a href="/archives/09/07 /">July 2009</ a></ li>
</ ul>
</aside>
5. Header
The element <header> represents the header of a section or page.
6. Footer
The element <footer> represents the footer of a section or page to make the information on copyright, legal ... etc..
7. Nav
The element <nav> represents a section of navigation links.
HTML Code:
<nav>
<a href="index.php">Home</ a>
<a href="contact.php">Contact</ a>
</nav>
8. Dialog
The element <dialog> can be used to define a conversation.
HTML Code:
<dialog>
<dt>Rupesh
<dd>Hello, how are you?
<dt>Julie
<dd>Well thank you and yourself?
<dt>Rupesh
<dd>Thank you, have you seen the new operation Kiwiz?
<dt>Julie
<dd>Ah yes its top, I think I'm going to order a book about the Sims 3.
</dialog>
... although elements of definition lists (dt, dd) are explicitly used in the example proposed by the W3C, this usage seems rather incongruous.
9. Figure
The element <Figure> can be used to group elements such as pictures or videos with their legend <legend>.
HTML Code:
<figure>
<img src="/images/kitten.jpg" />
<legend>A kitten cute and cuddly</ legend>
</figure>
10. <Audio> and <video>
These elements are used for multimedia content.
HTML Code:
<audio>
<! - Two formats in order of priority: ->
<source src="trapper.ogg" type="audio/ogg">
<source src="trapper.aac" type="audio/aac">
<! - Content if alternative formats on the audio or not supported in the browser: ->
<a href="trapper.ogg">Download <quote>Before I was a trapper</cite></ a>
David TMX (Ogg Vorbis)
</audio>
11. Canvas
The element <canvas> has been introduced in order to create 2D graphics in JavaScript on the fly. It allows to create an area for drawings or graphics applications. An editor that runs entirely on canvas has already been implemented by Mozilla.
12. Drag and Drop
Attribute draggable can make an element draggable.
13. Contenteditable
This attribute indicates that a field is editable. The user can change the content and manipulate the markup.
Bookmarks