Source: http://www.ido321.com/949.html
1. Three reasons why HTML 5 is popular
1. Support for mainstream browsers such as IE, Google, Firefox, Safari, Opera, etc.
1.1 Microsoft: On March 16, 2010, Microsoft launched IE9 at the MIX10 Technology Conference in Las Vegas. Preview version, more support for common Internet standards such as CSS3, SVG and HTML 5.
1.2 Google: On February 19, 2010, Ian Feit, the project manager of Google Gears, announced through his blog that Google would abandon Gears and focus on developing HTML 5.
1.3 Apple: On June 7, 2010, Apple released Safari 5 at the Developer Conference, which supports more than 10 new technologies of HTML 5, including HTML 5 video, formal verification, etc.
1.4 Opera: Hakon Wium Lie, known as the "Father of CSS", believes that HTML 5 and CSS 3 will be the development trend of the global Internet, and Opera is also working hard to develop HTML 5 products. The future of the Web belongs to HTML 5.
1.5 Mozilla: In July 2010, Mozilla released a beta version of FireFox 4, which supports HTML 5 syntax analyzer, form control, etc.
2. Requirements of the Times
The current era requires a universal standard for the Internet. Before HTML 5, due to the inconsistency between browsers, a lot of time was wasted just modifying bugs caused by compatibility between web browsers. The goal of HTML is to bring the Web into a mature application platform. On the HTML 5 platform, video, audio, images, animation, and computer interaction are all standardized.
Regarding web browsers, the Web Standards Project Group designed and launched the Acid3 test, which is a test for the standards compatibility of web browsers and design software. For web applications, Acid3 checks their dynamic content, and the testing focus is mainly on ECMAScript, DOM Level 3, Media Queries and data:URL. The designer of this test is Ian Hickson, the core figure of HTML 5, who is now one of the leaders of the W3C's HTML 5 working group.
3. Internet Exploere 8
Why do we talk about IE 8 here? IE is also moving towards supporting HTML 5. Before IE 7, the war between IE and Firefox for market share intensified. In order to regain the market share lost by Firefox, after the release of IE 7, the Release version of IE 8 came out. The newly launched IE 8 announced its compliance with Internet standards and began to support HTML 5, such as implementing sessionStorage and globalStorage functions to replace cookies. As the leader in the browser market, IE has already attached so much importance to HTML 5, and other players will naturally follow its lead. Therefore, it can be said that the momentum of HTML 5's large-scale promotion in the market is very strong.
2. Three reasons to use HTML 5 with confidence
Although web developers generally believe that HTML 5 is better, they still worry about things like "it Will it run normally on older browsers?", "Are there any compatibility issues?", "Are there any errors?" and other questions. Then read on.
1. Compatibility: HTML 5 can also run on older browsers.
2. Practicality: HTML 5 does not encapsulate complex and impractical functions. They are simple and practical functions that can improve development speed.
3. Non-revolutionary development: The internal functions of HTML 5 are developmental and are produced to meet the development needs of browsers. They do not completely subvert the HTML 4 standard.
Although the era of HTML 5 has arrived, it does not mean that websites created with HTML 4 must be rebuilt. It will only require that each web browser can run the functions developed by HTML 5 normally in the future.
3. Three problems to be solved by HTML 5
1. Low compatibility between web browsers.
The compatibility between web browsers is very low. A web program that can run on one browser will be completely different on another browser. In HTML 5, it analyzes the functions of each web browser in detail, and based on this, requires all internal functions of the browser to comply with the same common standard. Since they comply with the same standard, the compatibility problem is solved.
2. The document structure is unclear
In versions before HTML 5, CSS DIV design was commonly used, whether it was "title" or "text", it was usually implemented by DIV, but DIV is only used as a container and cannot be used as an element representing the document structure. Therefore, in HTML 5, many elements related to the document structure have been added, such as header, nav, section, artistic, etc., making the context of the HTML document clearer.
3. The functions of web applications are limited
For example, uploading multiple files at the same time was difficult to achieve before HTML 5. HTML 5 provides a variety of Web application APIs, and each browser encapsulates them, making it very easy to implement functions that are difficult to achieve in HTML 4. HTML 5 has made it possible to implement rich Web applications.
Next article: Getting started with Canvas (1): Drawing basic graphics such as rectangles, circles, straight lines, curves, etc.