Introduction:
HTML5 is a language description method for constructing Web content. HTML5 is the next generation standard of the Internet and a language method for constructing and presenting Internet content. It is considered to be one of the core technologies of the Internet. HTML was created in 1990, and HTML4 became an Internet standard in 1997 and is widely used in the development of Internet applications.
Actually, html5 is not directly formulated by w3c. The direction of w3c is xhtml2, not html5. When xhtml2 was out of touch with reality and could not be put into practice, the w3c working group turned its research direction to html5. Why did xhtml2 never materialize? Because it violates a design principle, which is the famous Burstahl's law - be conservative when sending; be open when receiving. A series of principles were followed in the html5 design process, which enabled html5 to be promoted quickly. This article will introduce the 5 design principles followed by html5
Avoid unnecessary complexity
html4
html5
html4
html5
Support existing content
The following four pieces of code, in xhtml only the first paragraph is correct; in html5, all of them are correct
Hello world
Hello world
Hello world
Hello world
(Learning video sharing:html video tutorial)
Solve real-life problems
In HTML4, even if two block-level elements have the same link address, It must also be written separately, because inline elements cannot contain block-level elements
Headline text
And in html5, due to the use of the content model,elements can also contain block-level elements
When the browser encounters an unrecognized type value, it will interpret the value of type as text
Related recommendations:html5 tutorial
The above is the detailed content of Introduction to HTML 5 design principles. For more information, please follow other related articles on the PHP Chinese website!