HTML5 label vs. HTML4 Label Example Introduction _HTML5 tutorial Tips

Source: Internet
Author: User

(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

  1. <! DOCTYPE html>
  2. <meta charset=utf-8>
  3. <TITLE>PHP100 Chinese Network HTML5 Special topic </title>
  4. <style type= "Text/css" rel= "stylesheet" >
  5. Header,nav,article,footer {border:solid 1px #666;p adding:5px}
  6. header{width:500px}
  7. nav{float:left;width:60px;height:200px}
  8. article{float:left;width:428px;height:200px}
  9. footer{clear:both;width:500px}
  10. </style>
  11. <script type= "Text/javascript" >
  12. Document.createelement (' article ');
  13. Document.createelement (' Nav ');
  14. Document.createelement (' header ');
  15. </script>
  16. <body>
  17. <nav> Menu </nav>
  18. <article>
  19. <H1>HTML5 Featured Video Tutorials
  20. Release date:<time>09:00</time>
  21. <time datetime= "2013-2-10" > Spring Festival </time>
  22. <p> Testing related content </p>
  23. </article>
  24. <footer>
  25. <address> Address </address>
  26. </footer>
  27. </body>
Copy Code Detailed Description: http://html5.662p.com/thread-19-1-1.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.