The difference between HTML and XHTML in layman's

Source: Internet
Author: User

HTML (Hypertext Markup Language, Hypertext Markup Language) The earliest HTML official formal specification, is the 1995 IETF (Internet Engineering Task Force, Internet Engineering Task Group) published HTML 2.0. After the IETF, World Wide Web Consortium, www, the HTML was upgraded several times until HTML 4.01 was released in 1999. HTML and XHTMLExtensible Hypertext Markup Language XHTML (extensible Hypertext Markup Language), the first revision of HTML 4.01, is the "3 HTML4 files reorganized according to the XML1.0 standard".  In other words, XHTML is a hybrid of HTML 4.01 and XML1.0.  Because XHTML1.0 is based on HTML4.01, and does not introduce any new tags or attributes (xhtml can be seen as a subset of HTML), it behaves like Hypertext Markup Language HTML, but is syntactically stricter, and almost all Web browsers are compatible with XHTML while parsing HTML correctly. For example: All tags in xhtml must be lowercase, all tags must be closed, and each attribute must be enclosed in quotation marks. <br> to be written <br/&gt, cannot be written as <br/> (with HR); After using <p>, you must have a </p> to end the paragraph. HTML and XMLHTML is a standard common Markup Language (SGML)-based application, and XHTML is based on Extensible Markup Language (XML), which is the two standard for parallel development. In essence, XHTML is a transition technology that combines the power of some XML with the simple nature of most HTML.  The goal of XHTML is to make the HTML transition to XML. XML is designed to transmit and carry data, not to represent or display data, and HTML to represent data. RSS and Atom have now become successful XML applications, and RSS uses XML as a standard way to share content with each other. It represents the really Simple syndication (or RDF site SUMMARY,RDF summary). It makes it easy for others to find that you have updated your site.  Atom data sources seem to be less, and for developers, RSS is relatively simple and atom is slightly more complex, especially if you are unfamiliar with XML. In 1997, when the XML1.0 standard was released, the HTML version had reached 4. Until January 26, 2000 XHTML1.0 became the recommended standard. However, given the current status of the HTML eminence, the consortium had to suggest "continuing to use HTML4.01 and actively study HTML5 and XHTML plans". The 2002 news that the XHTML family will be a new phase of the Internet and to develop XHTML2 is designed to steer the web toward a brighter future built on XML. HTML5 the way of the big lineSince XHTML only improved the original HTML system on the content structure, XHTML2.0 also focused on page specification and usability and lack of interactivity only on the basis of XHTML1.1.  In this web app big line of the age, XHTML2 some out, so the birth of HTML5. In defiance of web designers ' needs, the company has been carrying a standard banner from a theoretical standpoint, triggering objections from browser makers such as opera, Apple and Mozilla. In 2004, they formed a working group on Web Hypertext Technology (Web Hypertext Application Technology Working Group, abbreviated as WHATWG), which was designed to drive the network HTML5 standards. the competition between HTML5 and XHTML2The HTML5 goal is to replace the HTML4.01 and XHTML1.0 standards developed in 1999, designed to improve web page performance and increase page interaction. HTML5 draws on some XHTML2 suggestions, including some features to improve the structure of the document, such as the use of new HTML tag Headers, footer, dialog, aside, figure, and so on, which will enable content creators to create documents more semantically,  The previous developers used Div for all these occasions. After years of efforts, the WHATWG and the two sides finally reached a compromise in 2006. In October 2006, the father of the Web, the chairman of the World Wide Web Consortium (Tim Berners), and a member of the National Academy of Sciences, Tim Berners-lee, published a blog post saying that the path from HTML to XML would not work (XHTML is dead). In 2009, it wisely abandoned its plan to improve the XHTML2.0 standard and chose WHATWG's results as the basis.  In fact, XHTML has not been modified for several years after the 2002 update, despite the many problems it has discovered. In 2011, Ian Hickson, a Google engineer and HTML5 Standard editor, said HTML5 would be the last HTML language with a version number. He says the HTML language will become a living standard.

The difference between HTML and XHTML in layman's

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.