1. HTML5 Popular reasons:
(1) World-renowned browser manufacturers to HTML5 support: Microsoft, Google, Apple, Opera,mozilla and other manufacturers have launched a support HTML5 browser version.
(2) comply with the requirements of the Times
(3) Internet Explorer 8
2, can be assured that the use of HTML5 reasons: compatibility, practicality, non-revolutionary development
3, HTML5 to solve the problem:
(1) Low compatibility between Web browsers
(2) The document structure is not clear
(3) Limitations on the functionality of the Web application
4. Marking method in HTML5
<! DOCTYPE html>
<meta charset= "UTF-8" >
PS: Previous representations can continue to be used, but are not mixed.
5. The elements of the tag can be omitted:
6. Boolean Properties
<!--represents true--
<input type= "checkbox" checked>
<input type= "checkbox" checked= "Checked" >
<input type= "checkbox" checked= "" >
<!--represented as false---
<input type= "checkbox" >
7. Omit quotation marks
When the property value does not include an empty string, <,>,=, ', ', and so on, the quotation marks on both sides of the attribute can be omitted.
<input type=text>
8. New elements
Section elements: Content chunks in a page, such as chapters, headers, or other locations <section>...</section>
Article element: A piece of content in the page that is not relevant to the context <article>...</article>
Aside element: Auxiliary information related to the content of the article element in addition to the article content <aside>...</aside>
Header element: the title of the page's content block or the entire page
Hgroup element: Used to group the title of a chunk of content across a page or page
Footer element: A footnote that represents an entire page or a chunk of content in a page, typically including the creator's name, the date of creation, and the contact information that is seated <footer>...</footer>
Nav element: Part of the navigation link in the page <nav>...</nav>
Figure element: A separate stream content that typically represents a separate unit in the content of the document body flow, using the figcaption element to add a caption.
<figure>
<figcaption>PRC</figcaption>
<p>the people ' s Republic of China is born in 1949...</p>
</figure>
Video elements: Defining videos <video src= "Movie.ogg" controls= "controls" >video elements </video>
Audio element: Define the <audio src= "Someaudio.wav" >audio element </audio>
Embed elements: inserting multimedia <embed src= "Horse.wav"/>
Mark element: Visually highlight or highlight text <mark>...</mark>
Progress element: A process that represents a running program that displays time-consuming functions in JavaScript <meter>...</meter>
Time element: Represents the date, times, <time>...</time>
Ruby elements: representing ruby annotations <ruby> Kanji <rt><rp></rp></rt></ruby>
RT element: Represents the interpretation or pronunciation of a character <rt>...</rt>
RP element: Define what is realistic about browsers that do not support ruby elements <rp>...</rp>
WBR element: Wrap when width is not enough
<p>to Learn ajax,you must be fami<wbr>liar with the xmlhttp<wbr>
Request object.</p>
Canvas elements: Representing graphics <canvas id= "MyCanvas" width= "height=" ></canvas>
HTML5 Study Notes