HTML 5: Changes in the DOCTYPE, really starting at the top and beginning of HTML 5 HTML 5: 变化中的 DOCTYPE,真正从顶部开始,开始的 HTML 5
Oh you just know I will likely lose interest, see a bright shiny object or get another assignment before we walk through HTML 5, but I just got the HTML 5 “bug” or “focus”. (In this case for the translation tools, a “bug” is something that has I am interested in to the exclusion of other things to think about, like F# or WPF.)
In HTML 4.01 there are 3 different doctypes, in HTML5 there is only one:
<!DOCTYPE HTML>
That’s it. Ok the specification states that the tag must be (which are the words that state how to make the tab above):
- A string that is an ASCII case-insensitive match for the string "<!DOCTYPE".
- One or more space characters.
- A string that is an ASCII case-insensitive match for the string "html".
- Optionally, a DOCTYPE legacy string or an obsolete permitted DOCTYPE string (defined below).
- Zero or more space characters.
- A U+003E GREATER-THAN SIGN character (>).
The link is: https://dev.w3.org/html5/spec-author-view/syntax.html#the-doctype
You know what’s weird? It is so easy to hyperlink to this document, it’s like this website invented hypertext. Oh, they did.