(1) Changes in concept:
HTML5 focus on content and structure without focusing on performance
<nav> Menu </nav>
<article>
(2) Declaration and label:
HTML5 has simplified the more statements and labels, and has made detailed provisions for compatibility, abolishing some elements and adding some elements.
HTML5 tag Syntax introduction and new tags
1. Syntax Tags:
(1) Terminator tags that are not allowed to be written: area, Basebr, col, command, Embed, HR, IMG, input, keygen, link, meta, param, source, track, WBR
(2) The label of the Terminator can be omitted: Li, DT, DD, p, RT, optgroup, option, Colgroup, Thread, TBODY, TR, TD, Th
(3) tags that can be completely omitted: HTML, head, body, Colgroup, tbody
2. Added Tags:
<article> tags define an article
<aside> tags define the sidebar of the Content section of the page
<audio> tags define audio content
<canvas> tag definition picture
<command> tags define a command button
<datalist> tags define a drop-down list
<details> tags define the details of an element
<dialog> tags Define a dialog box (session box)
<embed> tags define external, interoperable content or plugins
<figure> tags define a set of media content and their titles <footer> tags define a page or the bottom of an area
<keygen> tag defines a generated key value in a form
<mark> tags define tagged text
<meter> Tag Definition Measurementwithin apredefinedrange
<nav> Tag Definition navigation links
<output> tags define some output types
<progress> marking the process of defining a task
<rp> tags are used in rubyannotations to tell those browsers that do not support ruby elements how to display
<rt> tag definitions for rubyannotations interpretation
<ruby> tag Definition rubyannotations.
<section> tags define an area
<source> tags defining media resources
<time> tags define a date/time
<video> tags define a video
HTML5 Simple Example
- <! DOCTYPE html>
- <meta charset=utf-8>
- <TITLE>PHP100 Chinese Network HTML5 Special topic </title>
- <style type= "Text/css" rel= "stylesheet" >
- Header,nav,article,footer {border:solid 1px #666;p adding:5px}
- header{width:500px}
- nav{float:left;width:60px;height:200px}
- article{float:left;width:428px;height:200px}
- footer{clear:both;width:500px}
- </style>
- <script type= "Text/javascript" >
- Document.createelement (' article ');
- Document.createelement (' Nav ');
- Document.createelement (' header ');
- </script>
- <body>
- <nav> Menu </nav>
- <article>
- <H1>HTML5 Featured Video Tutorials
- Release date:<time>09:00</time>
- <time datetime= "2013-2-10" > Spring Festival </time>
- <p> Testing related content </p>
- </article>
- <footer>
- <address> Address </address>
- </footer>
- </body>
Copy Code
Detailed Description: http://html5.662p.com/thread-19-1-1.html