tags:

views:

311

answers:

2

Update: Please disregard, my problem was caused by an advertisement bar being inserted by the vendor who provides my workplace wireless service.

I was building a mobile friendly website and wanted to use HTML 5. However when I specify the doctype as <!DOCTYPE HTML> , I get a gap at the top of the page on safari on the iphone.

I notice that other sites have the same problem such as nextstop.com and nike.com

I guess safari does not fully support HTML 5 yet. Anybody know of a workaround?

A: 

HTML 5 is still in a very unstable state. Don't use it in a production environment.

Edit Just so you guys know what it's about, HTML 5 is currently an Editor's Draft, and the document clearly states (in the Status of This Document section) that this specification is not stable, and that a consensus may not have been reached on any of the proposed sections. I think it should be clear enough that it means it's a bit early to start using it.

zneak
Thanks zneak. I realize it is still a draft but it looks like a good number of sites are moving ahead and using it. It all depends on the project and requirements but I was going to and use html5 for some personal projects.
Tom
+1  A: 

All browsers correctly interpret the HTML doctype. Putting it in sets your browser into Standards Compliant mode, that is the only difference with or without the doctype.

You can use a CSS reset tool like http://meyerweb.com/eric/tools/css/reset/ to get rid of default margins and padding on all elements.

Gaurav