After many hesitations, I finally write this article and give you 10 good reasons to adopt HTML 5, it's more convenient than if I gave you a long and fastidious analysis.
You can find numerous resources on the Internet.
<!DOCTYPE html>
<meta charset="UTF-8">
instead of :
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
it can't be shorter !
(the browser you love to hate) you only have to add the following script in the <head> tag which allows you to correctly show your new tags on every IE versions lower then IE 9 :
<!--[if lt IE 9]>
<script>
document.createElement("header");
document.createElement("section");
</script>
<![endif]-->
Even better, using the Modernizr script allows you to declare the HTML 5 tags and also to have an alternative to CSS3 tags.
Thanks to the new structural tags, your document is semantically structured like this :
<header> : the header, that's not his position that defines it but its contents, namely an introductive group.
<nav>: links of the main way to navigate.
<section> : to gather thematically your contents.
<aside> : has different contents that the main contents.
<footer> : gathers several information about the author, the copyright...
Be careful : other tags exist.
main : defines the main contents of a document.
secondary : represents a secondary part of your document.
navigation : defines the navigation of your document.
banner : at the top of your page, it contains your firm's logo, advertisings...
contentinfo : information about your page's contents : copyrights, legal notice...
definition : the definition of an element.
note : a note in brackets or at the bottom of a page.
seealso : it indicates the element has other datas in this page.
search : a research form.
Without using a plugin (like Flash), with <audio> or <video> tags. Then your media can be shown on every smartphone. Browsers only have to agreed on a common video codec.
And more user-friendly too :
placeholder : to show the text in an input.
required : forbids the browsers to validate a form if a required field was not filled.
autocomplete : to complete automatically a form or not, it's useful if you want some sensitive fields (like bank ID) not to be complete automatically
There are still numerous useful things to discover !
They respect WC3 standards with Internet Explorer 9. Let's not forget Microsoft Corporation is a member of W3C, the world organisation which dictates recommandations to follow for the Internet but for years Microsoft didn't follow these recommandations (a shame !).
Better now than never ! Webmasters have more and more an influence on how the Internet will develop tomorrow, you can influence the use of a language, you make the web the way it is, not apps' developers !
The more you make the Internet user-friendly, the more you will influence it.
Go further (in french) :
http://www.eyrolles.com/Informatique/Livre/html5-pour-les-web-designers-9782212128611
http://www.eyrolles.com/Informatique/Livre/css3-pour-les-web-designers-9782212129878
Rejoignez la communauté des créatifs du web !
- Partagez vos créations
- Gagnez en visibilité
- Créez votre blog facilement
> En savoir plus
le 22/04/11| #1
Avec toutes ces informations, on ne peut résister à passer en HTML 5 ^^