The reason why Html5 is so popular

1. Support for Html5 by world-renowned browser manufacturers

Microsoft: In 2010, Microsoft said that after completing the development of Ie9, it will support common standards for Internet browsing such as css3, svg and html5.

Google: In 2010, Google focused on developing html5 projects.

Apple: Safari5 was released after the 2010 Apple Developer Conference. This browser supports more than 10 HTML5 technologies, including full screen playback, HTML5 video, HTML5 geographic location, HTML5 slice elements, HTML5 draggable attributes, HTML5 Formal verification, Ruby for html5, Ajax history for html5, and webSocket subtitles.

Opera: In 2010, Opera, the father of CSS, a familiar technical officer, believed that Html5 and CSS3 would be the future development trend of the global Internet.

Mazilla: In 2010 the mazilla foundation released the first beta version of the upcoming Firefox4 browser.

2. Three reasons to use html5 with confidence

1. Compatibility: HTML5 can also run normally in older browsers.

2. Usability: H5 does not encapsulate any complex and unrealistic functions, but only encapsulates simple functions.

3. Non-revolutionary development: The internal function of h5 is not revolutionary, but developmental.

Three, three problems to be solved by html5

1. Low compatibility between web browsers

2, the document structure is not very clear

3. The functionality of the web application is limited

Fourth, the difference between html5 and html4

1. Basic grammatical differences include Doctype declaration, content type (contenttype), specifying method of character encoding, omission of element tags, attributes with boolean values, and omission of quotation marks.

2. Understand which elements are added in html5, which elements in html4 have been deleted, and why these elements are deleted, and what elements or methods are used to replace these deleted elements.

3. Understand the new attributes in html5, which attributes in html4 have been deleted, and what attributes are used in html5 to replace these deleted attributes.

4. Master what is a global attribute, several commonly used attributes, such as contentEditable attribute, designMode attribute, hidden attribute, spellcheck attribute and tabindex attribute.

 

Five, the markup method in html5

1. Content type (ContentType) The file extension and content type of html5 remain unchanged. That is, the extension is still ".html" or ".htm" and the content type is still "text/html".

2. The doctype declaration is essential in the html file. It is located in the first line of the file. The doctype declaration method in html5 is case-insensitive: <!DOCTYPE html>

3. Specify the character code: <meta http-eqiv="Content-Type" content="text/html;charset=utf-8"> in html4

                       <meta charset="utf-8"> in html5

6. Compatibility guaranteed by html5

1. Omit the quotation marks. When specifying an attribute, the quotation marks around the attribute value can be double quotation marks or single quotation marks. HTML5 has made some improvements on this basis. When the attribute value does not include empty strings, "<"">""=", single quotation marks, double quotation marks and other characters, the quotation marks around the attribute value can be omitted.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325045177&siteId=291194637