I have read a few articles, I can't see why one would use html5 instead of flash so any few examples which could show the advantages ?
HTML5 was built with cybersecurity in mindIt is more secure than any Flash code, but not entirely immune to malware or security issues. The difference is that HTML5 is maintained by the World Wide Web Consortium (W3C).
Modern HTML5 has feature-parity with the now-obsolete Adobe Flash. Both include features for playing audio and video within web pages. Flash was specifically built to integrate vector graphics and light games in a web page, features that HTML5 also supports.
The Best Flash Format Alternative – HTML5A standard that replaced Flash is HTML5. It provides web developers with an opportunity to create interactive content for the Web, as they had with Adobe Flash. HTML5 rendering is now implemented into web browsers, making it really easy to maintain and update.
HTML5 isn't one big blob that, taken as a whole, obsoletes Flash. It's lots of independent developments that browser vendors have been working on, some of which will allow native-HTML browsers to do things that have previously been limited to plugins such as Flash.
The famous one of these is audio/video. Flash was designed for animation and games, but in recent years since Flash added FLV playback, video has become by far the more prevalent use case for Flash (replacing embedded media players, which were always really horrible — good riddance to them). When browsers can do video by themselves, that will take a big bite out of Flash on the web.
Another important feature is <canvas>
. This expands the possibilities for games and other simple animations and pixel-level user interaction. Obviously it is far from offering all that Flash can do in the 2D realm, but again, it'll take a bite out of Flash's traditional use cases by offering similar features in an easier-to-deploy environment.
There are also features which browser vendors are implementing that are not actually part of HTML5, but which are seen as part of the same future-browser platform. For example:
ECMAScript Fifth Edition. JavaScript, now 10% less rubbish!
WebSockets. Faster than XMLHttpRequest, more reliable than Flash sockets.
SVG. This has long existed, but without IE support and with relatively poor performance for animations in many browsers. IE9 brings SVG support and promises to make it fast, potentially kicking the other browsers into optimisation action. SVG could offer rich retained-mode graphics in a similar vein to Flash, but with much smoother integration into the web page (instead of being stuck in a box).
CSS3 font embedding and effects will reduce the need for Flash text-replacement hacks.
Potentially, in the future, WebGL or similar for 3D.
and so on. Does all this, taken together, obsolete Flash? No. Not even when most deployed browsers support it all (and that'll be a long time yet). But it doesn't leave very much that only Flash can do.
IMO: in the future Flash will remain popular for drawn animation (thanks to its authoring environment) and games. But in five years it will no longer be what it is today: an essential, integral part of the web.
HTML5-based pages will work on the iPhone and IPad. Flash will not. Right now, Flash is supported more broadly that HTML5 except on Apple's mobile platform. HTML5 support is rapidly becoming ubiquitous so it is certainly a reasonable choice even for non-mobile focused sites. If you choose HTML5, you may want to implement graceful fall back for clients that do not implement any or all of the HTML5 features you use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With