Outlook and code of html6

零下一度
Release: 2017-05-02 15:28:43
Original
2798 people have browsed it

HTML5 is one of the most popular versions of the HTML language. It supports audio and video, offline storage, mobile terminals, tag attributes, and more. Tags such as

,
,
are also provided to help developers better organize page content. However, the HTML5 specification is still not finalized, and it is not a truly semantic markup language.

HTML6 Outlook

Have you ever wished you could use custom tags in HTML? For example: use to display your website logo, and use to display the toolbar, etc. We often use

and

to organize pages. In HTML6, we hope to directly use customizations like and Label.

HTML6 Code Sample:

   A Look Into HTML6       

Heading of main article

Sub-heading of main article

[...]

[...]

The concept of HTML6

Understanding the basics

[...]

This site is © to Anonymous 2014
Copy after login


In the above code, you may have noticed some strange tags, they are W3C and HTML6 Tags defined in the namespace in the specification. For example: is responsible for setting the title bar text of your browser, is responsible for displaying images, etc. Users can define their own tags for JavaScript and CSS to recognize and process, so that the page code will be more readable and the semantics will be clearer.

HTML6 APIs

HTML6 tags are preceded by namespaces, such as: , , etc.

1.

 // this is equivalent to  tag written in previous HTML versions  
Copy after login

2. is the same as thetag.

     
Copy after login

3. is similar to tags.

   A Look Into HTML6  
Copy after login

4. is similar to the tag. The difference is that in HTML5 you can only use standard metadata types, such as: "keywords", "description", "author", etc., whereas in HTML6 you can use any metadata type.

   A Look Into HTML6   
Copy after login

5. is similar to thetag in previous versions of HTML6.

   A Look Into HTML6   
Copy after login

6. is the same as thetag.

   A Look Into HTML6     
Copy after login

7. is similar to the tag, the difference is that only has one attribute: "href".

8. is the same as

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!