views:

159

answers:

2

I'm overhauling my blog (http://gilesvangruisen.com/) and I'm going to be pushing new technologies as much as possible.

I'm a web designer/developer and the browser percentage is as follows: 42% Firefox 39% Safari 7% Chrome 7% IE

Is it OK to use the HTML5 doctype for my "rethunk" site?

I thank you. -Giles :)

+5  A: 

You can safely use the HTML5 doctype <!doctype html> and it will just render as HTML strict on most browsers, including IE6. Only caveat is that the new HTML5 elements (i.e. header, footer, input type="number", etc) isn't directly supported by all browsers, including the current versions.

BalusC
Awesome! I appreciate it!
Giles Van Gruisen
There is a JavaScript out there to make IE accept the new elements … might work for all browsers.
Nerdling
Just to reiterate the point, unless you want a specific other version of HTML, you can always use the HTML5 *doctype*. Using some/all features of the language is another thing, but the doctype itself is always fine. (They checked, extensively.)
Paul D. Waite
@Nerdling: That's called Modernizr. That's also mentioned in the diveintohtml5 link which I placed behind `input type="number"` in my answer. @Paul: That's correct. Just use `<!doctype html>`. Clean and concise and renders strict even in IE6. Can't be done more easy.
BalusC
A: 

You should feel comfortable using HTML5. To detect which browsers support some of the next generation browser technologies, you should use a tool like modernizr.

zPesk