Comparison of HTML5 and Flash explained

Modern HTML5 has feature-parity with the now-obsolete Adobe Flash.[1] 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.

Adobe no longer supports Flash Player after December 31, 2020 and blocked Flash content from running in Flash Player beginning January 12, 2021.

The HTML5 specification does not itself define ways to do animation and interactivity within web pages.[2] "HTML5" in this article sometimes refers not only to the HTML5 specification, but to HTML5 and related standards like SVG, JavaScript and CSS 3.

Animation via JavaScript is also possible with HTML 4.

Comparison table

The table below compares the features of the Flash platform, the HTML5 specification and the features implemented in modern web browsers.

HTML5 standardHTML web browser featuresAdobe Flash/AIR features
Date startedWork began in 2003
Working Draft as of 2011[3]
Work began in 1996
Version 1 released in 1997
Desktop operating systems
Mobile operating systems
Video game consoles
Device supportcolspan="2"
Market penetration[4]
Browser support
Vector graphics formats
Bitmap effects, applied to text or graphics (e.g. Glow, Drop Shadow, Bevel)[5]
Vector text display, with Saffron Type System
Font support[6]
Text anti-aliasing, implemented in most browsers, for system and custom fonts, in most cases
Text tab stops, with Text Layout Framework
Liquid text layout, via "div" tag and CSS styling
Tabular data, via "table" tag
Linked text frames[7] , with Text Layout Framework[8]
Programming languages
C++ support
Code delivery formatPlaintextPlaintext JavaScript with limited obfuscation, WebAssembly bytecode, GLSL for GPUs, in Canvas elementsCompiled bytecode, can be obfuscated
Data formats[9] [10]
Data compression
Image formats[11] [12] [13]
Video formats[14]
Streaming video[15] [16]
Audio formats
Fullscreen support[17] , with warning displayed
Encryption DRM
File system access
Bitmap manipulation, via BitmapData class[18]
Binary manipulation, via JavaScript Typed Arrays[19] , via ByteArray class[20]
Large binary data, embedded or streaming binary data[21]
Offline storage, via Web storage, HTTP cookie, or Indexed DB to store binary, XML or JSON data[22] , via Local Shared Objects to store AMF-formatted data
Metadata

Notes

Comparison

Software support

Flash

Originally, web browsers could not render Flash media themselves, and required the proprietary freeware plugin Adobe Flash Player. Until 2008, there was no official specification by which to create an alternative player. Alternative players were developed before 2008, but they supported Flash to a lesser degree than the official one.[23] Flash support is built in to Google Chrome,[24] [25] Internet Explorer 10 (and later),[26] [27] and Microsoft Edge.[28]

The last version of the Adobe Flash Player ran on Microsoft Windows, Apple macOS, RIM, QNX and Google TV.

Earlier versions ran on Android 2.2-4.0.x (Flash was released for 4.0, but Adobe discontinued support for Android 4.1 and higher.[29]) (Flash 11.2), Linux (Flash 11.2, except for Pepper Flash which is maintained and distributed by Google, not Adobe), PlayStation 3 (Flash 9), PSP (Flash 6). Adobe Flash Lite runs on Wii, Symbian, Maemo Linux, Windows Mobile, and Chumby.

Apple never allowed Flash to run on iOS, the operating system which runs on iPad, iPhone, iPod Touch and Apple TV. Apple officially dropped support for Adobe Flash from the macOS version of Safari 14 released on September 17, 2020 for macOS 10.14 Mojave & macOS 10.15 Catalina.

In February 2012, Adobe announced it would discontinue development of Flash Player on Linux for all browsers, except Google Chrome, by dropping support for NPAPI and using only Chrome's PPAPI.[30] [31] In August 2016, Adobe announced that, beginning with version 24, it would resume offering of Flash Player for Linux for other browsers.[32] Adobe stopped traditional support for the Flash platform in 2020 and both Firefox and Google Chrome phased out support of Flash.[33]

HTML5

Almost all web browsers support HTML and other Web standards to various degree. Adobe released a tool that converts Flash to HTML5,[34] and in June 2011, Google released an experimental tool that does the same.[35] [36]

, versions of browsers such as Chrome, Firefox, Internet Explorer, Opera, and Safari implement HTML5 to a considerable degree. However, some portions of the HTML5 specification were still being implemented by browser makers.

As of January 2015, YouTube defaults to HTML5 players to better support more devices. HTML5 needs less processing power making it run faster on all browsers. The multimedia integration with HTML5 is quite easy and creates better support for live video streaming on mobile devices also.[37]

Vendor neutrality

Until 2008, the use of Flash was covered by restrictive licenses. The conditions prohibited use of the specification to develop any software (including players) which could render or read (and thus convert) SWF files, and required the output SWF files to be compatible with Adobe's players.[38]

In 2008, restrictions on use of the SWF and FLV/F4V specifications were dropped, and some specifications were released.[39] However, the "SWF File Format Specification Version 10" allegedly did not contain all the needed information, did not contain much information that hadn't been previously known by the community,[40] and itself could not be copied, printed out in more than one copy, distributed, resold or translated, without written approval of Adobe Systems Incorporated.[41]

Flash was not an open standard. It was controlled by one firm, Adobe Systems. In contrast, HTML5 is controlled mostly by a committee, the Web Hypertext Application Technology Working Group (WHATWG).[42]

Various people have praised Flash over the years for rendering consistently across platforms. Constructing sites in Flash was a way to prevent code forking, whereby different versions of a site are created for different browsers.[43] [44]

Speaking at 'Adobe Max' in 2011, Itai Asseo likewise said that, unlike HTML5, Flash offers a way to develop applications that work across platforms. HTML5, he said, is currently implemented differently (if at all) by different browsers. Although the Flash browser plugin is not supported on the Apple iPhone OS, Flash applications can be exported to Adobe AIR, which runs on that operating system as a native application. In the same talk, Mr. Asseo lamented the return to another browser war (as seen in the late 1990s). If Flash falls out of favor, he said, web developers will either have to develop many different versions of their web sites and native applications to take into account different HTML5 implementations, deny access to browsers that do not support their version of HTML, or dramatically reduce the functionality of their sites in order to deliver content to the least-advanced browser.[45]

Authoring

Constructing Flash websites using Adobe tools is relatively easier than with integrated development environments for CSS, HTML, and JavaScript;[46] however, many of Adobe's tools are expensive and proprietary software.[46]

In 2011 Adobe released a Flash-to-HTML5 conversion tool for existing content[47]

Because HTML5 is an open format, tools like those for Flash can be built for it, too. Applications like Hype[48] and Adobe Edge are already on the market.

Performance

Flash had a better performance than HTML according to a comparison of Flash with HTML in 2010 which listed Flash as being faster than the other technologies, when used for non-video animations, although they are catching up.[49] [50]

Some users, more so those on macOS and Linux, complained about the relatively high CPU usage of Flash for video playback.[51] This was partially because the Flash plugin did not use the GPU to render video. Adobe has responded to some of those criticisms in the 10.1 and 10.2 releases of the Flash plugin by offloading H.264 video decoding to dedicated hardware and by introducing a new video API called Stage Video.[52] The use of the newer ActionScript 3.0 inside Flash movies instead of the older ActionScript 2.0 improves code execution speed by a factor of around 10.[53] The software routines written by developers can also affect the performance of applications built in Flash, reasons that would affect HTML5 animations as well.[54]

DRM

Flash included DRM support. The main HTML 5 standard does not include any digital rights management functionality directly, instead the Encrypted Media Extensions (EME) specification describes application interface (API) for communication channel between web browsers and digital rights management (DRM) agent software.

Historically, before EME introduction implementations could support DRM, for example in codecs.[55] The proposal to add DRM features to HTML5 itself has been criticized by those who consider openness and vendor-neutrality (both server- and client-side) one of the most important properties of HTML, because DRM is incompatible with free software,[56] [57] and in the proposed form potentially not more vendor-neutral than proprietary plug-ins like Flash.[58] [59]

Accessibility

Both Flash and HTML text can be read by screen readers. However, special care must be taken to ensure Flash movies are read correctly. For example, if a Flash movie is set to repeat indefinitely, this can cause a screen reader to repeat the content endlessly. Selecting the "Make object accessible" check box in Adobe Flash Professional would create a text-only version of the object for screen readers and hide any motion from the screen reader.[60] Since Flash content was usually placed on a single webpage, it appeared as a single entry in search engine result pages, unless developers utilized deep linking to provide multiple links within Flash websites and web applications. User interface widgets in Flash objects would not always behave like their host native counterparts. Keyboard, mouse and other accessibility shortcuts may not have worked unless the webpage developer explicitly added support for it.

Search engines

Both Flash content and HTML content could be indexed by Google, Yahoo!, and Bing, although bi-directional text (e.g. Arabic, Hebrew) is not supported by Google.[61] [62] Yahoo! added support for indexing Flash sites in 2008, although Google had been able to index them for several years before that. Bing added support for Flash sites in 2010.

iOS devices

See main article: Thoughts on Flash.

Apple promoted HTML5 as an alternative to Flash for video and other content on the iOS, citing performance and security reasons for not allowing Adobe Flash Player to be installed on iOS devices, including the iPhone, iPod Touch and iPad.[42] Flash applications could be packaged as native iOS applications via the Adobe Integrated Runtime and the iOS Packager.[63]

See also

External links

Notes and References

  1. Web site: Amazon to Introduce Web-Based Book Previews. Bilton. Nick. Bits. The New York Times. June 30, 2010. December 26, 2010.
  2. James Williamson. What HTML5 is (and what it isn't). HTML5 First Look. Lynda.com. August 23, 2010. Online video.
  3. Web site: HTML Current Status. 21 December 2023. World Wide Web Consortium.
  4. Web site: Usage statistics of HTML5 for websites. 2020-03-28. 2020-03-28. https://archive.today/20200328164022/https://w3techs.com/technologies/details/ml-html5. live. W3Techs. Q-Success.
  5. Web site: BitmapFilter - Adobe ActionScript 3 (AS3) API Reference . Help.adobe.com . 2014-05-28 . 2014-06-29.
  6. Web site: Peter deHaan. Embedding fonts.. July 23, 2012.
  7. Web site: Can I Use.... CSS Regions. February 12, 2016.
  8. Web site: Adobe Systems. Working with Text Layout Framework (TLF) text. July 22, 2012.
  9. Web site: Browser-native . Caniuse.com . 2014-06-29.
  10. Web site: StyleSheet - Adobe ActionScript 3 (AS3) API Reference . Help.adobe.com . 2014-05-28 . 2014-06-29.
  11. SVG may be used by several ways: it may be included into an html source code or be linked as an image source to be displayed (e.g. in tag);
  12. Web site: Thibault Imbert. What's new in Flash Player 11. July 23, 2012.
  13. Book: Adobe Systems Incorporated. SWF File Format Specification, Version 10. 2008. 25. 2014-08-20. https://web.archive.org/web/20120131083755/http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf. 2012-01-31. dead.
  14. Web site: Adobe Systems. Supported Codecs. July 29, 2012.
  15. Web site: W3C. Media Source Extensions. August 24, 2015.
  16. Web site: Can I Use.... Media Source Extensions. October 1, 2015.
  17. Web site: WHATWG. Full Screen API Standard. August 24, 2015.
  18. Web site: BitmapData - Adobe ActionScript 3 (AS3) API Reference . Help.adobe.com . 2014-05-28 . 2014-06-29.
  19. Web site: Typed Arrays. Can I Use.... August 24, 2015.
  20. Web site: ByteArray - Adobe ActionScript 3 (AS3) API Reference . Help.adobe.com . 2014-05-28 . 2014-06-29.
  21. Book: Adobe Systems Incorporated. SWF File Format Specification, Version 10. 2008. 253. 2014-08-20. https://web.archive.org/web/20120131083755/http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf. 2012-01-31. dead.
  22. Web site: localStore. Can I Use.... August 24, 2015.
  23. Web site: Gnash Reference Manual . Gnu.org . 2008-05-18 . 2014-06-29.
  24. Web site: Integrated Adobe Flash Player Plug-in. live. https://web.archive.org/web/20130131084726/http://googlechromereleases.blogspot.cz/2010/03/dev-channel-update_30.html. 2013-01-31. Chrome team blog.
  25. Web site: Porting Flash to sandboxed PPAPI platform. https://web.archive.org/web/20180725110647/https://blog.chromium.org/2012/08/the-road-to-safer-more-stable-and.html. 2018-07-25. Official Chromium Blog.
  26. Web site: Flash Player issues | Windows 8. Adobe Systems. 2016-12-15. https://web.archive.org/web/20161220210445/https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-8.html. 2016-12-20. live.
  27. Web site: Flash Player Issues | Windows 10 | Internet Explorer. Adobe Systems. 2016-12-15. https://web.archive.org/web/20161220210544/https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-10-ie.html. 2016-12-20. live.
  28. Web site: Flash Player issues | Windows 10 | Microsoft Edge. Adobe Systems. 2016-12-15. https://web.archive.org/web/20161220210517/https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-10-edge.html. 2016-12-20. live.
  29. Svetlik. Joe. Adobe Flash coming for ICS, not Android 5.0. CNET UK. November 21, 2011. February 22, 2012. https://web.archive.org/web/20111122211514/http://crave.cnet.co.uk/mobiles/adobe-flash-coming-for-ics-not-android-5-0-50006177/. November 22, 2011. dead.
  30. Web site: Noyes . Katherine . For Flash on Linux, Chrome Will Be Users' Only Choice | PCWorld Business Center . Pcworld.com . April 6, 2012 . April 10, 2012.
  31. Web site: Adobe Releases Last Linux Version of Flash Player – Slashdot . Linux.slashdot.org . April 10, 2012 .
  32. Web site: Beta News – Flash Player NPAPI for Linux . Adobe AIR and Adobe Flash Player Team Blog . August 31, 2016 . November 17, 2016 .
  33. Web site: The end of Flash – Bubble Shooter Blog .
  34. Web site: Adobe.com. Flash to HTML5: Learn more about the CreateJS toolkit.
  35. Web site: Google Labs. Google Swiffy. dead. https://web.archive.org/web/20110904140637/http://swiffy.googlelabs.com/. 2011-09-04.
  36. Web site: Linked In Groups: HTML5 Technologies . Google just announced a SWF to HTML5 converter. L., Maxime.
  37. Web site: YouTube Engineering and Developers Blog. YouTube now defaults to HTML5 . 2018-11-03. 2018-09-10. https://web.archive.org/web/20180910204225/https://youtube-eng.googleblog.com/2015/01/youtube-now-defaults-to-html5_27.html. dead.
  38. Web site: SWF and FLV File Format Specification License Agreement. Adobe Systems. 2007-06-27. You may not use the Specification in any way to create or develop a runtime, client, player, executable or other program that reads or renders SWF files.. 2008-01-05 . https://web.archive.org/web/20071222125858/http://www.adobe.com/licensing/developer/fileformat/license/ . 2007-12-22.
  39. Web site: Open Screen Project Press Release. Adobe Systems. 2008-05-01. 2008-05-01.
  40. Web site: Free Flash community reacts to Adobe Open Screen Project. 2008-11-29. https://web.archive.org/web/20080928202954/http://www.openmedianow.org/?q=node%2F21. 2008-09-28. dead.
  41. Web site: SWF File Format Specification Version 10 . 2012-11-13 . https://web.archive.org/web/20120131083755/http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf . 2012-01-31 . dead .
  42. Web site: Jobs. Steve. Steve Jobs. April 29, 2010. Thoughts on Flash. live. https://web.archive.org/web/20170615060422/https://www.apple.com/hotnews/thoughts-on-flash/. June 15, 2017. March 24, 2022. Apple Inc..
  43. Book: Ka Wai Cheung and Craig Bryant . Flash Application Design Solutions: The Flash Usability Handbook . 6 . Apress . 2006 . 9781590595947 .
  44. Book: Huddleston, Rob . Flash Catalyst CS5 Bible . Wiley . 2010 . 9780470767948 .
  45. Web site: Itai Asseo. The Death of Flash. November 19, 2011.
  46. Wayner. Peter. HTML5 vs. Flash: The case for Flash. InfoWorld. June 2, 2010. January 5, 2011.
  47. Web site: John Nack on Adobe : "Wallaby" Flash-to-HTML5 conversion tool now available . Blogs.adobe.com . 2011-03-07 . 2012-06-18.
  48. Web site: Hype Features . Tumultco.com . 2014-06-29.
  49. Web site: "HTML5" versus Flash: Animation Benchmarking.
  50. Web site: Flash vs HTML5 Performance (Updated January 2012). 2012-11-20. https://web.archive.org/web/20121017051052/http://pacoup.com/2011/02/03/flash-vs-html5-performance/. 2012-10-17. dead.
  51. "Flash – CPU Usage – FPS – Frame Rate." Online posting. 10 December 2008. Reader discussions, Adobe Support Forums. 10 December 2010
  52. Web site: Dachis. Adam. Adobe Releases Flash 10.2 Beta, Reduces CPU Usage During Video Playback. December 1, 2010. Lifehacker. December 27, 2010.
  53. Web site: ActionScript 3.0 overview. Adobe Systems. 27 Jun 2006.
  54. Skinner. Grant. Quick as a Flash. Adobe MAX 2010. http://2010.max.adobe.com/. October 2010. https://web.archive.org/web/20110707084117/http://2010.max.adobe.com/schedule/by-session/quick-as-a-flash/471c495b-7ddf-4c0c-936b-609916f11e85. 2011-07-07. dead.
  55. Web site: FAQs - HTML Wiki . W3.org . 2011-02-22 . 2012-06-18.
  56. Web site: What I wish Tim Berners-Lee understood about DRM. Cory Doctorow. Technology blog at guardian.co.uk. 2013-03-12. 2013-03-20. Cory Doctorow.
  57. Web site: BBC Attacks the Open Web, GNU/Linux in Danger. Glyn Moody. Open Enterprise blog at ComputerworldUK.com. 2013-02-13. 2013-03-20. https://web.archive.org/web/20130317050344/http://blogs.computerworlduk.com/open-enterprise/2013/02/bbc-attacks-the-open-web-gnulinux-in-danger/index.htm. 2013-03-17. dead. Glyn Moody.
  58. Web site: DRM for the Web? Say It Ain't So. Scott Gilbertson. Webmonkey. Condé Nast. 2013-02-12. 2013-03-21. https://web.archive.org/web/20130324134750/http://www.webmonkey.com/2013/02/drm-for-the-web-say-it-aint-so. 2013-03-24. dead.
  59. Web site: Tell W3C: We don't want the Hollyweb. Defective by Design. Free Software Foundation. March 2013. 2013-03-25. https://web.archive.org/web/20130324133748/http://www.defectivebydesign.org/no-drm-in-html5. 2013-03-24. dead.
  60. Web site: Adobe Flash accessibility design guidelines. Adobe Systems. May 21, 2011.
  61. Web site: Flash and other rich media files. May 21, 2011.
  62. Web site: Google, Yahoo spiders can now crawl through Flash sites. Ars Technica. July 2008 . May 21, 2011.
  63. Web site: Adobe AIR | Adobe AIR 3 | Deploy applications . Labs.adobe.com . 2012-06-18.