Now that I've been asked about the difference between HTML5 and XHTML, I'm here to share some of my personal understanding, and I think from their sources, they have an interesting story to hide.
First recognize three organizations, IETF (Internet Engineering Task Force) Internet Engineering Task Group,World Wide web Consortium www Alliance,Web the most authoritative and influential international neutral technical standards body in the field,WHATWG(Web hypertet Application Technology working Group ) Hypertext Application Team, made up of browser vendors. There is also an important person, the father of Tim Berners Lee Web .
1991 Tim Berners Lee this man wrote an HTML document. In the November 1995 IETF published HTML2.0.1994, Tim Berners Lee established the organization of Web standards, Subsequently, HTML3.2 and html4.0,html4.01 were published. Then the world of the world's HTML introduced XML into XHTML. The style of the company's work behind closed doors has caused dissatisfaction among major browser makers. So the major browser manufacturers together set up the WHATWG organization, on the basis of HTML to expand, committed to research and development HTML5.W3C continue to develop XHTML, but to the dilemma. So Tim Berners Lee decided to use HTML5, while continuing to develop XHTML, know 2009, the announcement of the end of the XHTML2.0 research and development, began to wholeheartedly research HTML5.HTML5 is the result of the and WHATWG game. Know this story time, feel a little meaning, is the so-called alone learning and no friend is ignorant, really is very. Lesson it.
Let's talk about the grammatical differences between HTML5 and XHTML.
1. XHTML requires proper nesting
2. All XHTML elements must be closed
3. XHTML is case-sensitive
4. XHTML attribute values are enclosed in double quotes
5. XHTML replaces the name attribute with the id attribute
6. Processing of XHTML special characters
The difference between HTML5 and XHTML