28 HTML5 features, tips, and technologies you must know-

Source: Internet
Author: User
With the rapid development of the front-end, you may be far behind the hero. If you don't want to be overwhelmed by HTML5 changes and updates, you can take the content of this article as a required warm-up course. 1. New Doctypezxx: "doctype" Chinese meaning "...,. With the rapid development of the front-end, you may be far behind the hero. If you don't want to be overwhelmed by HTML5 changes/updates, you can take the content of this article as a required warm-up course.

1. New Doctype

// Zxx: "doctype" Chinese meaning "document type"

Still in use trouble. Can't you remember the XHTML document type?

 

If so, why is it still in use? Use the new HTML5 document type instead. You will live longer-as Douglas Quaid says

 

I figured out that for HTML5, you may doubt whether this code is reliable. Don't worry. Now this is feasible. Only the old Browser needs a specific doctype (document type ). If the browser does not know doctype, it will simply render the included labels in standard mode. So, sister, you are bold enough to throw all the care off the cloud, to embrace the new HTML5 document type.

Ii. graphic elements)

Let's take a look at the labels added to the image below:

 

Image of Mars.

Text is wrapped in the p label, and it is different from the img label. It is hard to think of this as the title. HTML5 adopts

Element. When combined When using element combinations, We Can semantically think of this as the title corresponding to the image.

           
            
     

This is an image of something interesting.

III,Redefinition

Not long ago,The element is used to create a subtitle near the logo. This is a very useful expression element. However, this usage may not be correct now.The element has been redefined and is a small character, so it is more available. Imagine the copyright status at the bottom of your website. According to the new HTML5 definition of this element,The information can be correctly wrapped.

The small element refers to a small character ".

4. Script (scripts) and link (links) do not require type

You may still add the type attribute to the link and script labels.

   

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.