Home >Web Front-end >H5 Tutorial >How is html5 better than flash?

How is html5 better than flash?

青灯夜游
青灯夜游Original
2021-02-22 10:33:063754browse

html5 is free and open, does not require plug-ins, is faster, more efficient, search engine friendly, has better security, is cross-platform, has low development costs and is simple to develop. And HTML5 has more powerful video functions; supports video recording functions; allows Web pages to run applications; supports rich 2D pictures; supports instant messaging functions.

How is html5 better than flash?

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

Flash was born in the 1990s. A brushstroke software company called FutureWave developed this technology. At the beginning, Flash was just an animation auxiliary software. Flash pictures and animations are based on vector storage, and the generation of vector graphics can be done by the CPU, and there is no distortion problem when zooming in or out, so it only takes tens to hundreds of KB to easily achieve the few MB that others need picture of. In the early 1990s, Internet speeds were still measured in Kb, so small vector formats were supported. SLP's Flash became the most suitable animation software for dissemination at that time.

Flash is suitable for content on low-speed Internet. It is also very attractive in the fields of games and animation. 4399 mini-games, "Sel" and other mini-games have emerged one after another, and can be opened and played directly on the web page. Ten or even five years ago, Flash games represented by 4399 Mini Games brought countless happy hours to teenagers. In terms of animation, Flash animation is simple to produce. Small animations such as the loving little boy, the spoofing mung bean frog, and the healing Ahri are widely spread on the Internet. There are still many old Internet names who remember these classic animation images.

H5 replaces Flash

When Flash was at its most glorious, there was even a separate user group - Flash. The word flash refers to Flash, and flashers specifically refer to groups who use Flash to create various animations. Nowadays, times have changed, many people no longer use Flash, and Flash has disappeared into the dust of history. When opening video websites, most of them switch to H5 technology. Flash, which once represented the advanced trend, has been abandoned by major video websites.

Maybe some people don’t understand why Flash was abandoned. This has to mention one person, Steve Jobs. The Apple founder was the first celebrity to take the initiative to criticize Flash. In Jobs' view, there were three main shortcomings of Flash: "First, Flash consumes a lot of power, second, it runs slowly, and third, it has security issues."

As a product of the PC era, Flash directly uses CPU resources, which naturally consumes huge amounts of energy. Apple focuses on mobile touch-screen phones and has strict battery life requirements, so Flash is obviously not suitable. In addition, after more than ten years of development, Flash has too many functions and its efficiency is too low. Later Flash can decode H. 264, can do 3D rendering, can play 7.1-channel surround sound, and supports game controllers. It is powerful but too bloated.

Compared with Flash, Jobs is more willing to use H5 technology. The technology possessed by H5 can do almost everything that Flash can do. It completely kills Flash by virtue of its advantages of being free and open, requiring no plug-ins, being faster, and friendly to search engines. H5 is more efficient, more secure, and does not require the installation of plug-ins. Soon H5 will completely replace Flash in the fields of video, animation and even advertising.

7 major advantages of html5 over Flash:

1. Supports video playback function.

One of the reasons why Flash is so popular is its ability to play videos. HTML5 has more powerful video functions, and you can control pause, play, and start at any time. Its powerful functional system is completely comparable to YouTube and other Flash websites.

2. Support video recording function

Today, this feature is not popular. According to Beccue, this feature will become increasingly important. Because currently all mobile virtual devices that provide Web access interfaces have camera functions.

3. Support audio playback/recording function

Currently you may need to use Flash, Quicktime or Java when playing/recording audio, and this is also one of the functions of HTML5.

4. Application

HTML5 allows Web pages to run applications, running independently like ordinary applications. (Download the Financial Times app to experience this feature)

5. Support rich 2D images

HTML5 embeds all complex two-dimensional image types. It runs much faster than the current way websites load images.

6. Support instant messaging function

The instant messaging function based on Web sockets is built into HTML5. Once this function is activated between two users, smooth communication can be maintained.

7. Real-time streaming

WebSockets will allow any Web page designer to easily add real-time data streaming (from stock market prices to Internet reports). Real-time data streaming requires more than just the skills of an HTML programmer. In addition, more sophisticated programming skills are required.

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of How is html5 better than flash?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn