The 2.8 Figure tag specifies separate stream content (images, charts, photos, code, and so on). The content of the figure element should be related to the main content, but if deleted, it should not affect the flow of the document. The figcaption tag defines the caption of the figure Element (caption). The "figcaption" element should be placed in the position of the first or last child element of the "figure" element.
<figure><figcaption> Lupu Bridge on the Huangpu River </figcaption></figure>
3. Non-subject structure label
3.1 <datalist> tags define a list of options.
<input type= "text" list= "taglist"/><datalist id= "taglist" ><option> Apple </option><option > Oranges </option><option> tomatoes </option></datalist>
3.2 Details tab define document detail
<details><summary>copyright 2011.</summary><p>all pages and graphics on this web site is the Pro Perty of W3school.</p></details>
3.3 menu Label definition list
<menu> <li>home</li> <li>home</li> <li>home</li></ Menu>
3.4 Address label
<address>written by <a href= "Mailto:[email protected]" >donald duck</a>.<br> Visit US at:<br >example.com<br>box 564, Disneyland<br>usa</address>
3.5 Progress progress bar label
Download Progress:<progress></progress>
3.6 Mark Highlights
<mark> China </mark> People's greatest
3.7 <time> tags define the date or time, or both
<p> We are open every morning <time>9:00</time> start. </p>
3.8 New Form elements
<input type= "Email"/><input type= "url"/><input type= "tel"/><input type= "number" min= "1" max= "20 "Step=" 4 "/><input type=" range " min=" 1 "max=" "" step= "4"/><input type= "search"/><input type= " Color "/><input type=" date "/><input type=" month "/><input type=" Week "/><input type=" Time "/ >
3.9 The new input property
3.9.1 User Input Auto-complete function
<form autocompelete= "on" ><input type= "text" list= "CityList"/><datalist id= "CityList" > < option>beijing</option> <option>QingDao</option> <option>qingzhou</ Option> <option>QingHai</option></datalist></form>
3.9.2 get focus when the page loads
<input type= "text" autofocus= "Autofocus"/>
3.9.3 form can also do data submission
<form action= "" method= "Get" id= "Form1" ></form><input type= "text" name= "Address1" form= "Form1"/>
The contents of the 3.9.4 form can also be changed to the action address
<form action= "1.aspx" > <input type= "Submit" value= "submit" formaction= "2.aspx"/></form>
3.9.5 file can support uploading multiple files.
<input type= "file" Name= "img" multiple= "multiple"/>
The 3.9.6 supports custom verification capabilities.
<form action= "1.aspx" > Please enter ZIP Code: <input type= "text" pattern= "[0-9]{6}" title= "Please enter the 6-digit zip code"/> <input type= " Submit "/></form>
3.9.4 added a default content hint
<input type= "text" placeholder= "Please enter user name"/>
3.9.5 New cannot be empty property
<form action= "1.aspx" > Please enter ZIP Code: <input type= "text" required= "required"/> <input type= "Submit"/>< /form>
3.10 New Global Properties
The 3.10.1 contenteditable property specifies whether the contents of an element can be edited.
<p contenteditable= "True" > This is an editable paragraph. Please try editing the text. </p>
The 3.10.2 hidden property specifies that the element is hidden.
<p hidden= "Hidden" > This is a hidden paragraph. </p><p> This is a paragraph that is visible. </p>
The 3.10.3 TabIndex property specifies the order of elements when navigating with the "tab" key.
<a href= "http://www.w3school.com.cn/" tabindex= "2" >w3school</a><br/><a href= "http/ www.google.com/"tabindex=" 1 ">google</a><br/><a href=" http://www.microsoft.com/"tabindex=" 3 " >Microsoft</a>
3.11 Other properties
3.11.1 ol reversed property to list order descending
<ol reversed start= "5" > <li>shuffle!/three World love song </li> <li> culling angels </li> <li > 0 Magic </li> <li> do not be spoiled oh/very Lotte division/innocent Monk Qiao nun </li> <li>to love/out Ru </li></ol >
The async attribute of 3.11.2 JS Specifies that once the script is available, it executes asynchronously.
<p id= "P1" >hello world!</p><script type= "Text/javascript" src= "/example/html5/demo_async.js" async= " Async "></script>
The defer attribute of 3.11.3 JS Specifies that the script will not be executed until the page has finished loading.
<script type= "Text/javascript" src= "/example/html5/demo_defer.js" defer= "defer" ></script><p> The above script requests information from the following paragraph. Typically, this is not possible because the script was executed before the paragraph was loaded. </p><p id= "P1" >hello world!</p><p> However, the defer attribute specifies that the script executes later. This allows the script to request information from the paragraph. </p>
HTML you may not yet know some of the points of knowledge