Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can HTML5 do most of what Flash does today? [closed]

Tags:

html

flash

What can it do? and what can't it do? (in relation to flash)

like image 763
TIMEX Avatar asked Mar 20 '10 01:03

TIMEX


People also ask

Does HTML5 replace Flash?

HTML5 is an alternative to using Flash but if your program doesn't run, and you purchased software, you would have to contact the creators of the software and ask for an update to the program or is they can convert it so it doesn't use Flash.

Is HTML5 more secure than Flash?

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

Why HTML5?

HTML5 allows you to build offline applications. Browsers that support HTML5 offline applications (which is most) will download the HTML, CSS, JavaScript, images, and other resources that make up the application and cache them locally.


2 Answers

HTML5 doesn't do anything, per se. It's a spec; one that isn't finished yet. Sure, many of its proposed features will allow developers to produce similar features as Flash, but it's up to the browser developers to implement said specification. Currently, there's a good amount of its proposed spec implemented in different ways by different browser vendors. If your application only uses something that supports some of the HTML5 spec (webkit-based Safari 5/Chrome/Chromium for instance), you can do a lot (ahem, guessing your question stems from Steve Jobs mentioning HTML5 in a Keynote™)...but will struggle with cross-platform support. Many of the major players in the browser market haven't even agreed on a common codec for video yet (H.264 for many, not supported currently by Firefox/Opera/etc. which use ogg/theora) so basically we're going back to pre-flash days of plugin-madness for a bit.

Some of the exciting features proposed in the spec for me are:

  • flexible canvas for scripting drawings, images, animations
  • more semantically accurate documents
  • custom data attributes
  • video and audio support (assuming something is agreed upon with RE: to codecs)
  • web/browser database

One of the major things that I personally would find to be a pain to produce using the proposed HTML5 spec:

  • animation and design. Ok, this is a coding site, but I'm a designer who codes and I work with a lot of designers. I don't want to have to programmatically animate a vector walkcycle :D ...canvas has little to no support for designers..do you see your designer friend writing code like this?)

Here's an app that shows a little bit of HTML5: http://9elements.com/io/projects/html5/canvas/

You'll note that it may "run up" your processor a bit (hey, just like flash!).

In the next 5-10 years it'll all be possible. Most of the spec is (if at all) partially supported in major browsers. You can keep up with which major browser's layout engines support what here. Officially though, the spec is scheduled to be complete in 2012, and recommended by 2022. Flash will still be a major player for a bit.

http://html5gallery.com/

and just in case:

http://ishtml5readyyet.com/


Edit just to add a few more notes from a blog comment I posted recently

HTML5 is about semantics and interoperability; it defines a recommendation about how HTML producers should produce documents. If browsers adopt these standards, it will make it easier for producers to create interoperable content that can be consumed sans plugin. This is why I love Flash; because it’s standards are implemented by the same people who “wrote” the standards. It behaves the same cross-platform (mostly) because it’s a plugin. The primary intention of HTML5 is to reduce the need for plugins.

One thing we (we being developers, designers) need to be careful with is lumping CSS3 and Javascript in with HTML5. Much of the cool stuff you see that is denoted as HTML5, isn't (Apple's recent "HTML5" showcase–which, the majority of which was not HTML5–is a great example). It's jQuery; it's CSS3 animations and transformations; it's proprietary video codecs that are only supported it one browser. Much to my chagrin, HTML5 has become the new "Web 2.0", representing a wide body of somewhat related technologies.

like image 131
typeoneerror Avatar answered Oct 24 '22 02:10

typeoneerror


You have less control over the audio with HTML5 than in Flash. You also depend on the browser for embedded video support.

But, HTML5 on some browsers, supports having a small database, so that you can locally cache some information and have it be persistent between iterations.

You can do 3D graphics, there are examples on the web, using the canvas tag, but, the tag has only limited support on IE using the excanvas code.

One thing HTML5 can do that Flash can't is run on the iPad. :) <== This is supposed to be humorous, it appears that that is lost on some people.

So, what do you want to do with Flash that you may consider trying to do in HTML5?

With Flash you can use their development tools and so have little actually coding to get some functionality, with HTML5 most of the changes seem to be driven by using javascript and there are few tools for that, that are specific to HTML5.

like image 22
James Black Avatar answered Oct 24 '22 02:10

James Black