Difference between XHTML and HTML

Main difference

HTML and XHTML are the web languages. The main difference between the two is that HTML is based on SGML while XHTML is based on XML. To comply with XML standards, XHTML was derived from HTML. XHTML is strict to follow encoding rules compared to HTML. HTML-encoded pages looked different in different browsers, so XHTML was developed to complicate browser-specific tags.

What is HTML?

HTML stands for Hypertext Markup Language. It is used to create web pages. It is based on SGML. It has file extensions that are .html and .htm. It was proposed by Tim Berners-Lee in 1987. His Internet media types are text / .htm. The HTML format type is document file.

What is XHTML?

XHTML stands for Extensible Hypertext Markup Language. It is used to create web pages. It is based on XML and is derived from HTML. It has file extensions that include .xhtml, .xht, .xml, .html, and .htm. The origin of information technology comes from the recommendation of the World Wide Web Consortium in 2000. Its Internet media types are applications / xhtml + xml. The XHTML format type is Markup Language.

Key differences

  1. HTML is based on SGML while XHTML is based on XML.
  2. HTML stands for Hypertext Markup Language, while XHTML stands for Extensible Hypertext Markup Language.
  3. XHTML has the file extensions .xhtml and .xht, while HTML does not.
  4. XHTML is strict to follow the rules of encoding and structure compared to HTML.
  5. HTML was proposed by Tim Berners-Lee in 1987, while the origin of origin is from the World Wide Web Consortium Recommendation in 2000.
  6. The HTML format type is Document File while the XHTML format type is Markup Language.
  7. HTML is developed by W3C & WHATWG while XHTML is developed by the World Wide Web Consortium.
  8. HTML is the application of SGML (Generalized Standard Markup Language) while XHTML is the application of XML.

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


Back to top button