Is it time to start developing with HTML5? [closed]

给你一囗甜甜゛ 提交于 2019-11-28 23:23:51

If you add nice features to your site, it is possible it will be talked about and reach the news sites for some free publicity.

Aside from that, It would make a good beta site and give you a head start for when it becomes the new technology. However, until HTML 5 enabled browsers are widespread (at least 20% of the market, possibly 50%) it makes little sense to alienate nearly the whole internet.

It's a great idea if used in a "Progressive Enhancement" way. ie. Code your website to work in "standard" HTML 4.01 mode, and then add some fancy HTML 5 bits to give it some extra flourishes in browsers that support HTML 5

If there is a feature in HTML 5 would be useful for the project you are working on, then it is worth considering using it.

You will need to weigh the benefits against the possibility of the specification changing, the less mature testing tools available for HTML5 validation and the probability that you will need to use JavaScript to fake support in older browsers (of course, the HTML 5 spec gives a roadmap that someone else may have already followed in writing such JS).

If HTML 4.01 gives you everything you need — stick with that.

Assess your target audience. Are they likely to be early-adopters? Is it critical that all visitors to your site are catered for? Or will a few not mind being met with an inconvenient, yet polite "please upgrade your browser" message?

For business sites I'd say no. Not yet, anyway. You probably can't afford to lose users of older browsers.

For a personal website or project, why not? It'll be great experience learning the latest HTML5 features, and you'll be ahead of the curve when it does become mainstream. Besides, more people writing sites conforming to HTML5 means more pressure on users of older browsers to upgrade, benefitting all of us in the long run.

The answer is most certainly YES. Firefox, Safari, Chrome and Opera make up more than 30% of the market and they support many HTML5 standards:

  • Audio & video tag
  • New tags (footer, header, section, etc)
  • Canvas
  • HTML5 doctype (<!DOCTYPE html>)

validator.w3.org supports HTML5 validation (it's experimental, but it seems stable)

For IE you can use these things to make some HTML5 elements work:

Hope that helps, and gets you started using HTML5!

Bruce Lawson of Opera gave an interesting presentation on this at OSCON, see his slides; the verbal conclusion was that it's OK, though there was some debate. Of course that's from somebody working for a browser maker so they're going to be less worried about older browsers (since everybody upgrading is to their advantage;-). The more you need to worry about older browsers, the worse your life is in general of course, but html 5 wouldn't help you there, sigh!-(

I have begun developing pages with the new HTML5 DOCTYPE:

<! DOCTYPE html>

This new DOCTYPE essentially puts the browser into a sorta "standards-based mode." Obviously this is all pretty new to most browsers but creating pages under this DOCTYPE will allow sites to last longer than ever. This also degrades gracefully within every browser I have tested in and no noticeable HTML or CSS downsides.

W3C has began using an experimental validator for HTML5 which can be used the exact same way as all of their other validation engines. An intersting side note: According to the W3C validator, you do not need to close the BODY or HTML tag at the end of the page; allowing for very minimal load time decreases.

As HTML5 continues to make its way to the forefront, I plan to begin implementing more advancements that just the DOCTYPE. For now that seems to be all that is new and widely supported.

Hope this helps. -B

This site has a pretty good HTML5 shiv for IE. Just include it on you page and you can then style the HTML5 elements.

http://html5.adamhunter.me/examples/html-shiv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!