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.