English 中文(简体)
I m overhauling my blog and … is HTML5 OK?
原标题:

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 :)

最佳回答

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.

问题回答

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.

This site is really useful for comparing browser support for features: http://caniuse.com/

Also, you can click "Import stats", which lets you link your Google Analytics profile to the page so it tailors the responses to your site s browser access numbers.

I would give serious thought to using the HTML5 Boilerplate as a starting point. It s HTML5 (obviously) but has been tested for compatibility with a variety of different browsers to make sure it still displays correctly everywhere. It also has jQuery, Modernizr, and normalizr wired in so you ve got a good foundation on which to build.

I ve never used it for a mostly static site, but it has proven a good starting point for our various apps.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签