views:

199

answers:

3

Is there any pros to use HTML 5 doctype <!DOCTYPE html> even if i'm not using any new HTML 5 tag? Is there any benefit to replace XHTML doctype with HTML 5 doctype even if i'm not using any new HTML 5 tag?

or in new projects which i'm going to start?

or it can create problems in any type of functionality if i 'm using any thing XML related with my site

or using HTML 5 can create with any A-Grade browser? IS it supported in all desktop and mobile browsers.

alt text

or for right now it's good to stick with XHTML Doctype till 2015?

A: 

It will surely break at least one old browser out there, so I recommend not using HTML 5 unless your page is actually HTML 5.

Also, XHTML and HTML 5 are not strictly compatible.

Earlz
no it's compatible < /> self closing tag is also acceptable in HTML 5
metal-gear-solid
Yes, but I mean is HTML 5 compatible with XHTML Strict? As far as I've seen HTML 5 is not some super-set of XHTML, they have incompatibilities.
Earlz
+3  A: 

You may be interested to check out John Resig's blog post on this topic (the founder of jQuery):

What's nice about this new DOCTYPE, especially, is that all current browsers (IE, FF, Opera, Safari) will look at it and switch the content into standards mode - even though they don't implement HTML5. This means that you could start writing your web pages using HTML5 today and have them last for a very, very, long time.

You may also want to check out the following Stack Overflow post (August 2008):

Daniel Vassallo
so it means it's good to use.
metal-gear-solid
Yes, I would say so. Also check: http://stackoverflow.com/questions/5629/any-reason-not-to-start-using-the-html-5-doctype
Daniel Vassallo
Will it really not create any problem in IE 6, and 7 and in any mobile browser. no cons of using <!DOCTYPE html> only pros,pros, pros
metal-gear-solid
+2  A: 

Is there any pros to use HTML 5 doctype even if i'm not using any new HTML 5 tag?

Slightly less typing.

That's about it.

I wouldn't use the HTML5 doctype yet. With this doctype you're stating that your document conforms to a specification that is still a moving target. IMO: wait until the spec is finished and the validation process tied down.

bobince