What is HTML5? What's the use? This question for some people who have just come into contact with the front-end learning will certainly be asked, then the following PHP Chinese network to you to say the concept of HTML and HTML5 can be used to do what.
What is HTML5?
We can find from the Baidu Encyclopedia HTML5 is the core language of the World Wide Web, the standard Universal markup language under the application of Hypertext Markup Language (HTML) of the fifth major changes, in fact, popular point you can think that HTML5 is the fifth major changes in HTML results.
Why is that a major change? Because HTML5 is a combination of technologies including HTML, CSS, and JavaScript, it reinforces the performance of Web pages. Second, the functionality of WEB applications such as local databases is appended.
So now you should probably know what HTML5 is, then after you know the concept of HTML5, we will then say HTML5 what is the use?
Second, what is the use of HTML5?
1, HTML5 let you get rid of the platform of Dependence
HTML5 allows you to get rid of the reliance on the platform, the user opens the browser, directly can access your application, without having to go through a variety of store audit.
2, HTML5 can solve the cross-browser problem
For front-end workers who have developed experience, cross-browser is a nightmare, clearly running in a browser Html+css+javascript page, but after changing a browser, there will be a lot of problems. The advent of HTML5 may change this situation, most of the core code is not rewritten, JavaScript code used well, in many places can be used, including mobile applications, mobile sites, PC sites, various browser plug-ins, and even can be used as a cross-platform WebKit package applications. Admittedly, this approach is not entirely cross-platform, but it is also enough to reduce the workload, especially for later maintenance. Therefore, the current mainstream browsers such as Chorme, Firefox, Safari have shown great enthusiasm for HTML5.
3, HTML5 have more good-looking animation effect
HTML5 implements a more beautiful web page, these animations are based on HTML5 tags and CSS3 style common implementation of the effect, HTML5 technology also support adaptive, can achieve "one-time design, universally applicable." ”
A good-looking special effect Source: Html5-canvas Confetti Falling animation effects
5, HTML5 search engine friendly, website traffic is big
HTML5 's code is well-defined by the user, not only for developers, search engines are also easier to identify the content on the page, so that the site to obtain more traffic.
4. HTML5 Web page allows users to have a better experience
HTML5 supports the web-side audio, video and other multimedia functions, with the site's own apps, cameras, audio and video features complement each other. HTML5 video play more smooth and clear, but also more power-saving, HTML5 game small and smooth, high-quality screen, easy to operate .
A little game Source: HTML5 Balloon War game code
More interesting special effects source see here: http://www.php.cn/xiazai/
This article here also introduced, in fact, the use of HTML5 of course more than these, there are many, more useful needs you in the learning application to find.
(Course recommended: HTML5 video tutorial)