html 5 introduction
This article originally posted at http://www.kroativ.net/web-dizajn/uvod-u-html5-i-css3/ in Croatian language.
In the world of web design comes a new technologies and a new standards.So that way is how HTML5 and CSS3 are born.
In this html5 introduction today I’ll describe in short html5 and css3. so let’s start with a basics.
Here are new element tags which are more semantic.
So first things first the old Doctype is replaced with shorter
And every modern browser will recognize that is all about html document. Here’s also declaration for encoding type it has a shorter version.So we will write instead of
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
A simplest one:
A declaration for a language is now:
New semantic elements in HTML5 in order of appearance:
Here’s an example for IE:
Second option is using boilerplate template which already has needed code for pages to look consistent in all major browsers.
One interesting thing in boilerplate that if it recognize You are using IE6 or IE7 it gives You possibility to install google Chrome framework which lasts a few seconds and after installation it rendering pages properly in IE.
You have clean version of boilerplate or one with comments included.
Here’s a link for boilerplate html5: http://html5boilerplate.com/
Ok it‘ll be all for now I hope I helped someone.
Keep working in discovering a new possibilities.